1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-24 08:48:50 -05:00

Provider SCC: Catch exception on getURL

This commit is contained in:
Alexandre Beloin 2015-02-21 23:07:33 -05:00
parent 652c9f33f9
commit 814e7c07c9

View File

@ -185,7 +185,10 @@ class SCCProvider(generic.TorrentProvider):
for searchURL in searchURLS:
logger.log(u"Search string: " + searchURL, logger.DEBUG)
data += [x for x in [self.getURL(searchURL)] if x]
try:
data += [x for x in [self.getURL(searchURL)] if x]
except Exception as e:
logger.log(u"Unable to fetch data reason: {0}".format(str(e)), logger.WARNING)
if not len(data):
continue