Another none check

This commit is contained in:
xnappo 2015-03-29 19:07:07 -05:00
parent 18e7a1660b
commit 0a3ad1988a

View file

@ -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