mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-22 04:56:38 +00: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
|
continue
|
||||||
try:
|
try:
|
||||||
await self.session.process_entities(result)
|
await self.session.process_entities(result)
|
||||||
except OSError:
|
except OSError as e:
|
||||||
self._log[__name__].warning(
|
self._log[__name__].warning(
|
||||||
'Failed to save possibly new entities to the session: %s: %s', type(e), e)
|
'Failed to save possibly new entities to the session: %s: %s', type(e), e)
|
||||||
self._entity_cache.add(result)
|
self._entity_cache.add(result)
|
||||||
@ -90,7 +90,7 @@ class UserMethods:
|
|||||||
# It only means certain entities won't be saved.
|
# It only means certain entities won't be saved.
|
||||||
try:
|
try:
|
||||||
await self.session.process_entities(result)
|
await self.session.process_entities(result)
|
||||||
except OSError:
|
except OSError as e:
|
||||||
self._log[__name__].warning(
|
self._log[__name__].warning(
|
||||||
'Failed to save possibly new entities to the session: %s: %s', type(e), e)
|
'Failed to save possibly new entities to the session: %s: %s', type(e), e)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user