tlsappointmentbot: Also *log* exceptions if we ignore them
This commit is contained in:
parent
aec9047998
commit
526c3e3d67
|
@ -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…
Reference in a new issue