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
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,10 @@ class DailySearcher():
if not show or int(sqlEp["showid"]) != show.indexerid:
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:
logger.log(u"ERROR: expected to find a single show matching " + sqlEp["showid"])
continue