Merge "Confirm we have auth creds before clearing preauth"
This commit is contained in:
@@ -1032,7 +1032,9 @@ class Connection(object):
|
|||||||
raise
|
raise
|
||||||
if err.http_status == 401:
|
if err.http_status == 401:
|
||||||
self.url = self.token = None
|
self.url = self.token = None
|
||||||
if self.attempts > 1:
|
if self.attempts > 1 or not all((self.authurl,
|
||||||
|
self.user,
|
||||||
|
self.key)):
|
||||||
raise
|
raise
|
||||||
elif err.http_status == 408:
|
elif err.http_status == 408:
|
||||||
self.http_conn = None
|
self.http_conn = None
|
||||||
|
Reference in New Issue
Block a user