From 809a07edac84eb6210b340bab94a09ac6953729b Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 19 Jun 2022 14:56:32 +0300 Subject: [PATCH] Fix missing variable and assignment in reset_deadline --- telethon/client/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telethon/client/users.py b/telethon/client/users.py index 4436cbbd..ee76095c 100644 --- a/telethon/client/users.py +++ b/telethon/client/users.py @@ -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)