[Epydoc-commits] SF.net SVN: epydoc: [1218] trunk/epydoc/src/epydoc/docparser.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-04-12 18:35:16
|
Revision: 1218 Author: edloper Date: 2006-04-12 11:35:03 -0700 (Wed, 12 Apr 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1218&view=rev Log Message: ----------- - If there's an internal error during parsing, report what line number generated it. Modified Paths: -------------- trunk/epydoc/src/epydoc/docparser.py Modified: trunk/epydoc/src/epydoc/docparser.py =================================================================== --- trunk/epydoc/src/epydoc/docparser.py 2006-04-12 18:02:59 UTC (rev 1217) +++ trunk/epydoc/src/epydoc/docparser.py 2006-04-12 18:35:03 UTC (rev 1218) @@ -650,6 +650,11 @@ raise ParseError('Error during parsing: invalid ' 'syntax (%s, line %d) -- %s' % (module_doc.filename, lineno, e)) + except KeyboardError, e: raise + except Exception, e: + log.error('Internal error during parsing (%s, line ' + '%s):\n%s' % (module_doc.filename, lineno, e)) + raise # grouping... if groups[-1] and prev_line_doc not in (None, 'skip_block'): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |