Skip to content

Commit 0562f8c

Browse files
committed
Remove an unnecessary except clause
RetryError is a subclass of RequestException, so this was not useful. Signed-off-by: Wieland Hoffmann <themineo@gmail.com>
1 parent 02c48e1 commit 0562f8c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

musicbrainzngs/musicbrainz.py

-2
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,6 @@ def _safe_read(request):
511511
if exc.response.status_code == 401:
512512
raise AuthenticationError(cause=exc)
513513
raise ResponseError(cause=exc)
514-
except requests.RetryError as exc:
515-
raise NetworkError(cause=exc)
516514
except requests.RequestException as exc:
517515
raise NetworkError(cause=exc)
518516

0 commit comments

Comments
 (0)