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

Feature Request: warning for re-raising a caught exception #72

Closed
benbariteau opened this issue May 22, 2019 · 2 comments
Closed

Feature Request: warning for re-raising a caught exception #72

benbariteau opened this issue May 22, 2019 · 2 comments

Comments

@benbariteau
Copy link

In python 2 if you have the following code:

try:
    foo()
except Exception as e:
    raise e

The original traceback gets swallowed. This has caused me a lot of problems and I feel like it would be useful for most developers in the ecosystem.

@joaoe
Copy link
Contributor

joaoe commented Jan 1, 2020

It's January 2020 and bugbear no longer wishes to support python 2, which is also no longer supported.

This problem does not exist in Python 3. The stack trace is preserved.

@benbariteau
Copy link
Author

lol fair

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