Merge pull request #120 from thgcode/master

fixed a bug that prevented fbchat from returning the list of all users
This commit is contained in:
Taehoon Kim
2017-04-04 22:00:15 +09:00
committed by GitHub

View File

@@ -357,7 +357,11 @@ class Client(object):
users = []
for k in payload.keys():
user = self._adapt_user_in_chat_to_user_model(payload[k])
try:
user = self._adapt_user_in_chat_to_user_model(payload[k])
except KeyError:
continue
users.append(User(user))
return users