tlsappointmentbot: Also *log* exceptions if we ignore them
This commit is contained in:
parent
aec9047998
commit
526c3e3d67
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
import asyncio
|
||||
import datetime
|
||||
import logging
|
||||
import traceback
|
||||
from typing import List
|
||||
|
||||
from selenium import webdriver
|
||||
|
@ -55,6 +56,7 @@ class TLSAppointmentBot:
|
|||
await self.matrix_bot.send_appointments(appointments)
|
||||
|
||||
except Exception:
|
||||
logging.error(traceback.format_exc().strip())
|
||||
await self.matrix_bot.send_warning()
|
||||
|
||||
await asyncio.sleep(2 * 60)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue