Skip to content

Commit

Permalink
Remove an unnecessary except clause
Browse files Browse the repository at this point in the history
RetryError is a subclass of RequestException, so this was not useful.

Signed-off-by: Wieland Hoffmann <[email protected]>
  • Loading branch information
mineo committed Dec 10, 2016
1 parent 3eddaf7 commit 67d4dd9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions musicbrainzngs/musicbrainz.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,6 @@ def _safe_read(request):
if exc.response.status_code == 401:
raise AuthenticationError(cause=exc)
raise ResponseError(cause=exc)
except requests.RetryError as exc:
raise NetworkError(cause=exc)
except requests.RequestException as exc:
raise NetworkError(cause=exc)

Expand Down

0 comments on commit 67d4dd9

Please sign in to comment.