Issues

Issue #227 resolved

pyparser does not correctly handle exception handlers

Dolda2000
created an issue

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)

  1. Log in to comment