tlsappointmentbot: Also *log* exceptions if we ignore them

This commit is contained in:
Tristan Daniël Maat 2023-05-19 23:54:03 +01:00
parent aec9047998
commit 526c3e3d67
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

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