From 7e29161ab58e96b882b82ac6d8e789ecc3267830 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Tue, 10 Feb 2015 20:21:10 +0000 Subject: [PATCH] Fix issue where setting the status for an episode that doesn't need a db update fails. --- CHANGES.md | 4 ++++ sickbeard/webserve.py | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 5a1ae1ab..2ae728bf 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +### 0.6.4 (2015-02-10 20:20:00 UTC) +* Fix issue where setting the status for an episode that doesn't need a db update fails + + ### 0.6.3 (2015-02-10 05:30:00 UTC) * Change KickAssTorrents URL diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index ddcf4e1d..f6924997 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -4216,7 +4216,9 @@ class Home(MainHandler): epObj.status = int(status) # mass add to database - sql_l.append(epObj.get_sql()) + result = epObj.get_sql() + if None is not result: + sql_l.append(result) if len(sql_l) > 0: myDB = db.DBConnection()