add exception logging

This commit is contained in:
bakatrouble 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(): async def background_on_start():
while True: while True:
logging.warning('Checking updates...') logging.warning('Checking updates...')
try:
await check_updates() await check_updates()
except Exception as e:
logging.exception(e)
logging.warning('Sleeping...') logging.warning('Sleeping...')
await asyncio.sleep(60) await asyncio.sleep(60)