diff --git a/eprints2bags/network.py b/eprints2bags/network.py index abe9ad0..a86161b 100644 --- a/eprints2bags/network.py +++ b/eprints2bags/network.py @@ -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]: