mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -05:00
AniDB: Fix generating exception on timeout in auth
This commit is contained in:
parent
1c33d1af82
commit
a70fb7f66f
@ -1014,14 +1014,14 @@ def set_up_anidb_connection():
|
|||||||
logger.log(u"anidb exception msg: " + str(e))
|
logger.log(u"anidb exception msg: " + str(e))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if not sickbeard.ADBA_CONNECTION.authed():
|
try:
|
||||||
try:
|
if not sickbeard.ADBA_CONNECTION.authed():
|
||||||
sickbeard.ADBA_CONNECTION.auth(sickbeard.ANIDB_USERNAME, sickbeard.ANIDB_PASSWORD)
|
sickbeard.ADBA_CONNECTION.auth(sickbeard.ANIDB_USERNAME, sickbeard.ANIDB_PASSWORD)
|
||||||
except Exception, e:
|
else:
|
||||||
logger.log(u"anidb exception msg: " + str(e))
|
return True
|
||||||
return False
|
except Exception as e:
|
||||||
else:
|
logger.log(u"anidb exception msg: " + str(e))
|
||||||
return True
|
return False
|
||||||
|
|
||||||
return sickbeard.ADBA_CONNECTION.authed()
|
return sickbeard.ADBA_CONNECTION.authed()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user