Fixed trakt.tv error, TypeError: 'NoneType' object has no attribute '__getitem__'

This commit is contained in:
echel0n 2014-06-25 15:47:57 -07:00
parent 42e1994cba
commit 20aa4b6331

View file

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