diff --git a/main.py b/main.py index 2ad45c8..0c0bddb 100644 --- a/main.py +++ b/main.py @@ -135,7 +135,10 @@ async def update(msg: Message): async def background_on_start(): while True: logging.warning('Checking updates...') - await check_updates() + try: + await check_updates() + except Exception as e: + logging.exception(e) logging.warning('Sleeping...') await asyncio.sleep(60)