add exception logging

This commit is contained in:
2023-03-30 23:08:02 +03:00
parent b4e6fe63f5
commit 57707c708b

View File

@@ -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)