mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 17:59:55 +03:00
Fix: get_me() inside _dispatch_update() didn't check for connection and RPC errors
This commit is contained in:
parent
61b0f09e1d
commit
7c8d09048f
|
@ -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, errors.RPCError):
|
||||
pass
|
||||
|
||||
built = EventBuilderDict(self, update, others)
|
||||
for conv_set in self._conversations.values():
|
||||
|
|
Loading…
Reference in New Issue
Block a user