From 2230420720ce324176473e2611e6f1082b900df5 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 25 Sep 2014 23:12:16 +0800 Subject: [PATCH] Fixes exception generated in thread DAILYSEARCHER: 'NoneType' object has no attribute 'getEpisode' --- sickbeard/dailysearcher.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sickbeard/dailysearcher.py b/sickbeard/dailysearcher.py index 216e017d..89025b22 100644 --- a/sickbeard/dailysearcher.py +++ b/sickbeard/dailysearcher.py @@ -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