Small cleanup in examples

This commit is contained in:
Alex Root Junior 2023-08-21 01:13:19 +03:00
parent 787ad6b094
commit b7be9c2b81
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
3 changed files with 6 additions and 20 deletions

View file

@ -133,7 +133,4 @@ async def main():
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO, stream=sys.stdout)
try:
asyncio.run(main())
except (KeyboardInterrupt, SystemExit):
logging.info("Bot stopped!")
asyncio.run(main())