From 44ad79b21ab29c27807d44b3bfdc353767ddb2b5 Mon Sep 17 00:00:00 2001 From: mhucka Date: Mon, 4 Apr 2022 16:59:37 -0700 Subject: [PATCH] AuthFailure -> AuthenticationFailure --- eprints2bags/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]: