mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-25 01:08: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:
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user