Fix: get_me() inside _dispatch_update() didn't check for connection and RPC errors

This commit is contained in:
Serhii Dylda 2020-10-10 15:37:42 +02:00
parent 61b0f09e1d
commit 7c8d09048f

View File

@ -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():