Skip to content

Commit

Permalink
AuthFailure -> AuthenticationFailure
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Apr 4, 2022
1 parent 504f03d commit 44ad79b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eprints2bags/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def addurl(text):
if code == 400:
error = RequestError(addurl('Server rejected the request'))
elif code in [401, 402, 403, 407, 451, 511]:
error = AuthFailure(addurl('Access is forbidden'))
error = AuthenticationFailure(addurl('Access is forbidden'))
elif code in [404, 410] and not polling:
error = NoContent(addurl("No content found"))
elif code in [405, 406, 409, 411, 412, 414, 417, 428, 431, 505, 510]:
Expand Down

0 comments on commit 44ad79b

Please sign in to comment.