From 3a5963c85a4ecf0289d35304e2cee80b9fbb6471 Mon Sep 17 00:00:00 2001 From: Piotr Staroszczyk Date: Thu, 3 Dec 2015 19:19:00 +0100 Subject: [PATCH] possible fix for #172 --- fut/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fut/core.py b/fut/core.py index 0794927..b61ef04 100644 --- a/fut/core.py +++ b/fut/core.py @@ -279,7 +279,7 @@ def __login__(self, email, passwd, secret_answer, platform='pc', code=None, emul # sort clubs by lastAccessTime (latest first) # self.clubs.sort(key=lambda i: i['lastAccessTime'], reverse=True) for c in p['userClubList']: - if game_sku in c['skuAccessList']: + if c['skuAccessList'] and game_sku in c['skuAccessList']: self.persona_id = p['personaId'] self.persona_name = p['personaName'] break