mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-23 10:42:14 +01:00
- reset retry counter on 404 answer for all python 2.7.x versions
This commit is contained in:
parent
137f07816b
commit
7a3b6667c7
@ -452,7 +452,7 @@ def _build_opener(url):
|
||||
return None
|
||||
|
||||
authhandler_class = OscHTTPBasicAuthHandler
|
||||
elif sys.version_info >= (2, 6, 6) and sys.version_info < (2, 7, 1):
|
||||
elif sys.version_info >= (2, 6, 6) and sys.version_info < (2, 7, 99):
|
||||
class OscHTTPBasicAuthHandler(urllib2.HTTPBasicAuthHandler):
|
||||
def http_error_404(self, *args):
|
||||
self.reset_retry_count()
|
||||
|
Loading…
x
Reference in New Issue
Block a user