-
Notifications
You must be signed in to change notification settings - Fork 44
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
Handles an exception for non-existing repository #1713
Conversation
CHANGES/1703.bugfix
Outdated
Fixed an issue that triggered a `NoneType` exception during a GET request when | ||
a `distribution` was created with only the `repository_version` (without specifying | ||
a `repository`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed an issue that triggered a `NoneType` exception during a GET request when | |
a `distribution` was created with only the `repository_version` (without specifying | |
a `repository`). | |
Fixed an issue causing an HTTP 500 error when a GET request for a non-existing blob was made to a distribution with only a `repository_version` set. |
How about this? It does not talk about Python types. Users do not care about them.
with self.assertRaises(requests.exceptions.HTTPError): | ||
content_response.raise_for_status() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we check that this returns 404 instead of 500?
265be2f
to
56a40a3
Compare
Backport to 2.21: 💚 backport PR created✅ Backport PR branch: Backported as #1719 🤖 @patchback |
Backport to 2.20: 💚 backport PR created✅ Backport PR branch: Backported as #1720 🤖 @patchback |
fixes: #1703