Fix internal get_me() was not expecting network errors (#1594)

This commit is contained in:
vegeta1k95 2020-10-11 09:33:05 +02:00 committed by GitHub
parent 61b0f09e1d
commit d0faaa2ead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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:
pass # might not have connection
built = EventBuilderDict(self, update, others)
for conv_set in self._conversations.values():