fixed a bug that prevented fbchat from returning the list of all users in some accounts

This commit is contained in:
Thiago
2017-04-03 18:34:21 -03:00
parent 462c21d2ef
commit f66e9c98f3

View File

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