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:
parent
652c9f33f9
commit
814e7c07c9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user