From 0a3ad1988a5176971c8cea6c472d615c9f994205 Mon Sep 17 00:00:00 2001 From: xnappo Date: Sun, 29 Mar 2015 19:07:07 -0500 Subject: [PATCH] Another none check --- resources/lib/LibrarySync.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/LibrarySync.py b/resources/lib/LibrarySync.py index b18702d3..7aa9d796 100644 --- a/resources/lib/LibrarySync.py +++ b/resources/lib/LibrarySync.py @@ -445,7 +445,10 @@ class LibrarySync(): allKodiTVShows = ReadKodiDB().getKodiTvShows(False) if allKodiTVShows != None: kodishow = allKodiTVShows.get(tvshow,None) - kodiEpisodes = ReadKodiDB().getKodiEpisodes(kodishow["tvshowid"],True,True) + if kodishow != None: + kodiEpisodes = ReadKodiDB().getKodiEpisodes(kodishow["tvshowid"],True,True) + else: + kodiEpisodes = None else: kodiEpisodes = None