From d41997940671fa1211ebf253d1aa726e014bf436 Mon Sep 17 00:00:00 2001 From: David <41039853+Polaris-d@users.noreply.github.com> Date: Wed, 12 Apr 2023 23:36:43 +0800 Subject: [PATCH] Declare missing exception variable (#4087) --- telethon/network/connection/connection.py | 2 +- telethon/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/telethon/network/connection/connection.py b/telethon/network/connection/connection.py index ac25fe5d..cb83b9d7 100644 --- a/telethon/network/connection/connection.py +++ b/telethon/network/connection/connection.py @@ -339,7 +339,7 @@ class Connection(abc.ABC): except InvalidBufferError as e: self._log.warning('Server response had invalid buffer: %s', e) await self._recv_queue.put((None, e)) - except Exception: + except Exception as e: self._log.exception('Unexpected exception in the receive loop') await self._recv_queue.put((None, e)) else: diff --git a/telethon/version.py b/telethon/version.py index 7fc03b31..e2cf9488 100644 --- a/telethon/version.py +++ b/telethon/version.py @@ -1,3 +1,3 @@ # Versions should comply with PEP440. # This line is parsed in setup.py: -__version__ = '1.28.2' +__version__ = '1.28.3'