Merge ~cjwatson/launchpad:oci-registry-client-fix-exceptions into launchpad:master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | e325dbfb0b688c23923c77ece224073bd9077c5b |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:oci-registry-client-fix-exceptions |
Merge into: | launchpad:master |
Diff against target: |
224 lines (+148/-16) 2 files modified
lib/lp/oci/model/ociregistryclient.py (+20/-15) lib/lp/oci/tests/test_ociregistryclient.py (+128/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tom Wardill (community) | Approve | ||
Review via email: mp+384957@code.launchpad.net |
Commit message
Fix HTTP error handling in OCIRegistryClient
Description of the change
urlfetch raises 4xx/5xx HTTP errors as exceptions, so we need to account for that when deciding whether to raise BlobUploadFailed or ManifestUploadF
To post a comment you must log in.