Fix for: 'NoneType' object is not iterable in trakt module

This commit is contained in:
Prinz23 2015-01-09 21:41:45 +01:00
parent 9d4122247e
commit 3b4346b053

View file

@ -83,6 +83,7 @@ class TraktNotifier:
# Start by getting all episodes in the watchlist
watchlist = TraktCall("user/watchlist/episodes.json/%API%/" + sickbeard.TRAKT_USERNAME, sickbeard.TRAKT_API, sickbeard.TRAKT_USERNAME, sickbeard.TRAKT_PASSWORD)
if watchlist is not None:
# Convert watchlist to only contain current show
for show in watchlist:
# Check if tvdb_id exists