Skip to content

Commit

Permalink
fix: ambiguity in client termination handler
Browse files Browse the repository at this point in the history
  • Loading branch information
KnownBlackHat committed Sep 22, 2024
1 parent a8ea296 commit 54808be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mr_robot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 54808be

Please sign in to comment.