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