mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fixed trakt.tv error, TypeError: 'NoneType' object has no attribute '__getitem__'
This commit is contained in:
parent
42e1994cba
commit
20aa4b6331
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue