Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proxy: raise UpstreamRegistryError if we can't request upstream (#1220)
requests will either throw a RequestException or a ConnectionError if it fails to request the given url for whatever reason. callers are only expected to treat UpstreamRegistryError, so we throw it instead of the requests related exceptions, adding the original message to the new exception.
- Loading branch information
1 parent
7524171
commit b941a03
Showing
1 changed file
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters