mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Fix missing variable and assignment in reset_deadline
This commit is contained in:
parent
4b151fbce9
commit
809a07edac
|
@ -73,7 +73,7 @@ class UserMethods:
|
|||
continue
|
||||
try:
|
||||
await self.session.process_entities(result)
|
||||
except OSError:
|
||||
except OSError as e:
|
||||
self._log[__name__].warning(
|
||||
'Failed to save possibly new entities to the session: %s: %s', type(e), e)
|
||||
self._entity_cache.add(result)
|
||||
|
@ -90,7 +90,7 @@ class UserMethods:
|
|||
# It only means certain entities won't be saved.
|
||||
try:
|
||||
await self.session.process_entities(result)
|
||||
except OSError:
|
||||
except OSError as e:
|
||||
self._log[__name__].warning(
|
||||
'Failed to save possibly new entities to the session: %s: %s', type(e), e)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user