-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support Python 3's 'raise Exception from e'? #19
Comments
Hmm yes, you're right, currently we're printing the last stack frame. This needs to be changed so TBV is more intelligent about which frame it prints. |
Surely it should print them all? |
It shouldn't expand frames that aren't a part of your program, and doesn't currently. |
Let me be clearer. Consider this script: try:
1 / 0
except:
foo By default it outputs:
This contains two tracebacks. Previously it sounded like you were referring to tracebacks as frames, so I just went with it. Each traceback here contains one frame. tbvaccine only shows the last traceback:
Presumably tbvaccine should print every traceback so that users know what went wrong, although it can be selective about which frames it prints/expands within each traceback. Also note that this example doesn't use the |
Oh, I see. Yes, it definitely shouldn't swallow tracebacks, this is a bug. |
It's not clear if tbvaccine supports Python 3's 'raise MyException from e' syntax.
Or at least the original exception is not being emitted in the tbvaccine output.
The text was updated successfully, but these errors were encountered: