-
Notifications
You must be signed in to change notification settings - Fork 643
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
Proper usage of exceptions under Python3 #939
Comments
ericfrederich
added a commit
to ericfrederich/python-gitlab
that referenced
this issue
Nov 14, 2019
nejch
added a commit
that referenced
this issue
Mar 29, 2020
max-wittig
added a commit
that referenced
this issue
Apr 7, 2020
chore: use raise..from for chained exceptions (#939)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description of the problem, including code/CLI snippet
Python3 has support to
raise from
to distinguish between the following circumstances:For instance when a project doesn't exist as in the code below, you'll see two exceptions:
On Python3 between the two exceptions you'll see the statement:
During handling of the above exception, another exception occurred:
This is clearly not the case.
Expected Behavior
You see in the console between the two exceptions:
Actual Behavior
You see in the console between the two exceptions:
Specifications
The text was updated successfully, but these errors were encountered: