1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

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