1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Increasing generic client timeout to 20s to work around busy hosts

This commit is contained in:
Nils Vogels 2014-05-01 10:17:00 +02:00
parent 071d51fcda
commit 812e8443bd

View File

@ -48,7 +48,7 @@ class GenericClient(object):
return False return False
try: try:
self.response = self.session.__getattribute__(method)(self.url, params=params, data=data, files=files, self.response = self.session.__getattribute__(method)(self.url, params=params, data=data, files=files,
timeout=10, verify=False) timeout=20, verify=False)
except requests.exceptions.ConnectionError, e: except requests.exceptions.ConnectionError, e:
logger.log(self.name + u': Unable to connect ' + ex(e), logger.ERROR) logger.log(self.name + u': Unable to connect ' + ex(e), logger.ERROR)
return False return False