1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fixes exception generated in thread DAILYSEARCHER: 'NoneType' object has no attribute 'getEpisode'

This commit is contained in:
Adam 2014-09-25 23:12:16 +08:00
parent 761192e275
commit 2230420720

View File

@ -56,6 +56,10 @@ class DailySearcher():
if not show or int(sqlEp["showid"]) != show.indexerid: if not show or int(sqlEp["showid"]) != show.indexerid:
show = helpers.findCertainShow(sickbeard.showList, int(sqlEp["showid"])) show = helpers.findCertainShow(sickbeard.showList, int(sqlEp["showid"]))
# for when there is orphaned series in the database but not loaded into our showlist
if not show:
continue
except exceptions.MultipleShowObjectsException: except exceptions.MultipleShowObjectsException:
logger.log(u"ERROR: expected to find a single show matching " + sqlEp["showid"]) logger.log(u"ERROR: expected to find a single show matching " + sqlEp["showid"])
continue continue