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
|
return None
|
||||||
|
|
||||||
authhandler_class = OscHTTPBasicAuthHandler
|
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):
|
class OscHTTPBasicAuthHandler(urllib2.HTTPBasicAuthHandler):
|
||||||
def http_error_404(self, *args):
|
def http_error_404(self, *args):
|
||||||
self.reset_retry_count()
|
self.reset_retry_count()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user