Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyparser does not correctly handle exception handlers #227

Closed
sqlalchemy-bot opened this issue Apr 13, 2014 · 4 comments
Closed

pyparser does not correctly handle exception handlers #227

sqlalchemy-bot opened this issue Apr 13, 2014 · 4 comments
Labels
bug Something isn't working

Comments

@sqlalchemy-bot
Copy link

Migrated issue, originally created by Dolda2000 (@Dolda2000)

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)
@sqlalchemy-bot
Copy link
Author

Changes by Dolda2000 (@Dolda2000):

  • edited description

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

python 3 only apparently

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

c314ecf

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • changed status to closed

@sqlalchemy-bot sqlalchemy-bot added the bug Something isn't working label Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant