mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 20:59:29 +00:00
Make sure it's a Contacts before accessing fields
This commit is contained in:
parent
cfa19bc1c8
commit
28f10bd042
@ -2412,6 +2412,8 @@ class Client:
|
||||
time.sleep(e.x)
|
||||
continue
|
||||
else:
|
||||
log.info("Contacts count: {}".format(len(contacts.users)))
|
||||
self.fetch_peers(contacts.users)
|
||||
if isinstance(contacts, types.contacts.Contacts):
|
||||
log.info("Contacts count: {}".format(len(contacts.users)))
|
||||
self.fetch_peers(contacts.users)
|
||||
|
||||
return contacts
|
||||
|
Loading…
Reference in New Issue
Block a user