From ddc0425e44b4186821c00dc22d4ad072a79a80ca Mon Sep 17 00:00:00 2001 From: gatsik <74517072+Gatsik@users.noreply.github.com> Date: Fri, 13 May 2022 00:33:19 +0300 Subject: [PATCH] Call logger.exception with required argument --- server/servercontext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/servercontext.py b/server/servercontext.py index 726688d5c..6e8190d74 100644 --- a/server/servercontext.py +++ b/server/servercontext.py @@ -132,8 +132,8 @@ async def client_connected(self, stream_reader, stream_writer): asyncio.CancelledError, ): pass - except Exception: - self._logger.exception() + except Exception as e: + self._logger.exception(e) finally: del self.connections[connection] # Do not wait for buffers to empty here. This could stop the process