[Epydoc-commits] SF.net SVN: epydoc: [1718] trunk/epydoc/src/epydoc/docparser.py
Brought to you by:
edloper
From: <ed...@us...> - 2008-02-14 22:25:16
|
Revision: 1718 http://epydoc.svn.sourceforge.net/epydoc/?rev=1718&view=rev Author: edloper Date: 2008-02-14 14:25:14 -0800 (Thu, 14 Feb 2008) Log Message: ----------- - If the source file is not encoded correctly, then issue an error (rather than crashing) and give up on parsing. Modified Paths: -------------- trunk/epydoc/src/epydoc/docparser.py Modified: trunk/epydoc/src/epydoc/docparser.py =================================================================== --- trunk/epydoc/src/epydoc/docparser.py 2008-02-14 22:21:41 UTC (rev 1717) +++ trunk/epydoc/src/epydoc/docparser.py 2008-02-14 22:25:14 UTC (rev 1718) @@ -285,7 +285,7 @@ raise ParseError('Error during parsing: %s ' '(%s, line %d, char %d)' % (msg, module_doc.filename, srow, scol)) - except IndentationError, e: + except (IndentationError, UnicodeDecodeError), e: raise ParseError('Error during parsing: %s (%s)' % (e, module_doc.filename)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |