From 20aa4b63318e019c1edc18d690d5f447db777441 Mon Sep 17 00:00:00 2001 From: echel0n Date: Wed, 25 Jun 2014 15:47:57 -0700 Subject: [PATCH] Fixed trakt.tv error, TypeError: 'NoneType' object has no attribute '__getitem__' --- sickbeard/notifiers/trakt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/notifiers/trakt.py b/sickbeard/notifiers/trakt.py index 4cac11f9..d16f63c3 100644 --- a/sickbeard/notifiers/trakt.py +++ b/sickbeard/notifiers/trakt.py @@ -73,7 +73,7 @@ class TraktNotifier: """ data = TraktCall("account/test/%API%", api, username, password, {}) - if data["status"] == "success": + if data and data["status"] == "success": return True def _username(self):