add exception logging
This commit is contained in:
parent
b4e6fe63f5
commit
57707c708b
5
main.py
5
main.py
@ -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...')
|
||||||
await check_updates()
|
try:
|
||||||
|
await check_updates()
|
||||||
|
except Exception as e:
|
||||||
|
logging.exception(e)
|
||||||
logging.warning('Sleeping...')
|
logging.warning('Sleeping...')
|
||||||
await asyncio.sleep(60)
|
await asyncio.sleep(60)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user