diff --git a/mr_robot/__main__.py b/mr_robot/__main__.py index 3da808e..296951e 100644 --- a/mr_robot/__main__.py +++ b/mr_robot/__main__.py @@ -64,6 +64,8 @@ async def main(): await future except asyncio.CancelledError: logger.info("Received signal to terminate bot and event loop") + except Exception as e: + logger.info(f"Client got closed due to: {e}") finally: logger.warning("Closing Client") if not client.is_closed():