diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index 2ac1b0e..cf9022f 100644 --- a/giscanner/annotationparser.py +++ b/giscanner/annotationparser.py @@ -538,7 +538,11 @@ class AnnotationParser(object): comment_blocks = {} for comment in comments: - comment_block = self.parse_comment_block(comment) + try: + comment_block = self.parse_comment_block(comment) + except Exception, exc: + print "%s:%s %s" % (comment[1], comment[2], exc) + continue if comment_block is not None: if comment_block.name in comment_blocks: