From ffc2833c892362bed1f287a8d2676cff0b209711 Mon Sep 17 00:00:00 2001 From: Nils Vogels Date: Mon, 5 May 2014 01:12:47 +0200 Subject: [PATCH] Also trap if data is completely lacking --- sickbeard/properFinder.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sickbeard/properFinder.py b/sickbeard/properFinder.py index e65d1efa..f8f76cd6 100644 --- a/sickbeard/properFinder.py +++ b/sickbeard/properFinder.py @@ -184,6 +184,9 @@ class ProperFinder(): logger.DEBUG) if curProper.airdate: airdate = curProper.airdate.toordinal() + else: + airdate = None + myDB = db.DBConnection() sql_result = myDB.select( "SELECT season, episode FROM tv_episodes WHERE showid = ? and indexer = ? and airdate = ?",