- edited description
pyparser does not correctly handle exception handlers
Issue #227
resolved
The FindIdentifiers code in pyparser crashes on an exception handler that uses an expression other than a simple name for the exception type.
The fix is simple. Line 105 in pyparser.py is currently:
self.listener.undeclared_identifiers.add(node.type.id)
Simply replace with this:
self.visit(node.type)
Comments (3)
-
-
python 3 only apparently
-
- changed status to resolved
- Fixed bug in Python parsing logic which would fail on Python 3
when a "try/except" targeted a tuple of exception types, rather
than a single exception. fixes
#227
→ <<cset c314ecf67074>>
- Log in to comment