We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Python3 has support to raise from to distinguish between the following circumstances:
raise from
For instance when a project doesn't exist as in the code below, you'll see two exceptions:
import os import gitlab gl = gitlab.Gitlab( url=os.environ['GITLAB_URL'], private_token=os.environ['GITLAB_TOKEN'], api_version="4", ) gl.auth() gl.projects.get('non-existent-project')
On Python3 between the two exceptions you'll see the statement: During handling of the above exception, another exception occurred:
During handling of the above exception, another exception occurred:
This is clearly not the case.
You see in the console between the two exceptions:
The above exception was the direct cause of the following exception:
The text was updated successfully, but these errors were encountered:
Use six.raise_from in GitLabError's wrapper
a71532b
Fixes Issue python-gitlab#939
chore: use raise..from for chained exceptions (#939)
79fef26
Merge pull request #1059 from python-gitlab/fix/raise-from
6749859
Successfully merging a pull request may close this issue.
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: