From 814e7c07c95936103b9ee8cc67cdb4c625ebece6 Mon Sep 17 00:00:00 2001 From: Alexandre Beloin Date: Sat, 21 Feb 2015 23:07:33 -0500 Subject: [PATCH] Provider SCC: Catch exception on getURL --- sickbeard/providers/scc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sickbeard/providers/scc.py b/sickbeard/providers/scc.py index 45c1092c..73c4bc4e 100644 --- a/sickbeard/providers/scc.py +++ b/sickbeard/providers/scc.py @@ -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