mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 21:24:35 +03:00
Fix internal get_me() was not expecting network errors (#1594)
This commit is contained in:
parent
61b0f09e1d
commit
d0faaa2ead
|
@ -405,7 +405,10 @@ class UpdateMethods:
|
|||
#
|
||||
# It will return `None` if we haven't logged in yet which is
|
||||
# fine, we will just retry next time anyway.
|
||||
await self.get_me(input_peer=True)
|
||||
try:
|
||||
await self.get_me(input_peer=True)
|
||||
except OSError:
|
||||
pass # might not have connection
|
||||
|
||||
built = EventBuilderDict(self, update, others)
|
||||
for conv_set in self._conversations.values():
|
||||
|
|
Loading…
Reference in New Issue
Block a user