1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-17 23:05:11 -05:00

Merge pull request #1389 from abeloin/patch-scc

Provider SCC: Catch exception on getURL
This commit is contained in:
Alexandre Beloin 2015-02-22 11:30:33 -05:00
commit 79ed31b79a

View File

@ -185,7 +185,10 @@ class SCCProvider(generic.TorrentProvider):
for searchURL in searchURLS: for searchURL in searchURLS:
logger.log(u"Search string: " + searchURL, logger.DEBUG) 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): if not len(data):
continue continue