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

Error in exception handler #13

Open
tdterry opened this issue Feb 27, 2014 · 2 comments
Open

Error in exception handler #13

tdterry opened this issue Feb 27, 2014 · 2 comments

Comments

@tdterry
Copy link

tdterry commented Feb 27, 2014

Running 0.4.2, I found an interesting unhandled exception triggered by a bad expression syntax. Using the expression:

a == "b" ()

I get an exception 'Str' object has no attribute 'id'

AttributeError: 'Str' object has no attribute 'id'
...
[
    ".../lib/python2.7/site-packages/pql/matching.py", 
    171, 
    "handle", 
    "options=self.get_options())"
]

@alonho
Copy link
Owner

alonho commented Apr 25, 2014

What did you actually try to achieve? What is the meaning of doing "b"()? (string isn't callable).

@tdterry
Copy link
Author

tdterry commented Apr 25, 2014

It was from poorly converted user input. We trap ParseError to return an appropriate error message, but since it resulted an unhandled exception, I thought it should be reported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants