From 418566ce1c1d3e94f94518d711fdac8b22a410e4 Mon Sep 17 00:00:00 2001 From: david <41039853+Polaris-d@users.noreply.github.com> Date: Wed, 12 Apr 2023 05:15:36 +0000 Subject: [PATCH] Fix missing exception --- telethon/network/connection/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: