Fix bug when no api_secret is set

pull/54/head
Mitchell Klijs 7 years ago
parent ccf9fdf361
commit 97f9ab12fb

@ -163,8 +163,12 @@ class Trakt:
if user is None: if user is None:
users = self.cfg['trakt'] users = self.cfg['trakt']
users.pop('api_key')
users.pop('api_secret') if 'api_key' in users.keys():
users.pop('api_key')
if 'api_secret' in users.keys():
users.pop('api_secret')
user = list(users.keys())[0] user = list(users.keys())[0]

Loading…
Cancel
Save