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:
@@ -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
|
||||
|
Reference in New Issue
Block a user