summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.py b/main.py
index d2a303ca..5f6bd81f 100755
--- a/main.py
+++ b/main.py
@@ -364,7 +364,7 @@ class _BasicAuthHandler(urllib.request.HTTPBasicAuthHandler):
364 req.add_header = _add_header 364 req.add_header = _add_header
365 return urllib.request.AbstractBasicAuthHandler.http_error_auth_reqed( 365 return urllib.request.AbstractBasicAuthHandler.http_error_auth_reqed(
366 self, authreq, host, req, headers) 366 self, authreq, host, req, headers)
367 except: 367 except Exception:
368 reset = getattr(self, 'reset_retry_count', None) 368 reset = getattr(self, 'reset_retry_count', None)
369 if reset is not None: 369 if reset is not None:
370 reset() 370 reset()
@@ -389,7 +389,7 @@ class _DigestAuthHandler(urllib.request.HTTPDigestAuthHandler):
389 req.add_header = _add_header 389 req.add_header = _add_header
390 return urllib.request.AbstractDigestAuthHandler.http_error_auth_reqed( 390 return urllib.request.AbstractDigestAuthHandler.http_error_auth_reqed(
391 self, auth_header, host, req, headers) 391 self, auth_header, host, req, headers)
392 except: 392 except Exception:
393 reset = getattr(self, 'reset_retry_count', None) 393 reset = getattr(self, 'reset_retry_count', None)
394 if reset is not None: 394 if reset is not None:
395 reset() 395 reset()
@@ -432,7 +432,7 @@ class _KerberosAuthHandler(urllib.request.BaseHandler):
432 return response 432 return response
433 except kerberos.GSSError: 433 except kerberos.GSSError:
434 return None 434 return None
435 except: 435 except Exception:
436 self.reset_retry_count() 436 self.reset_retry_count()
437 raise 437 raise
438 finally: 438 finally: