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:
|
||||
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