tlsappointmentbot: Also *log* exceptions if we ignore them

main
Tristan Daniël Maat 2023-05-19 23:54:03 +01:00
parent aec9047998
commit 526c3e3d67
Signed by: tlater
GPG Key ID: 49670FD774E43268
1 changed files with 2 additions and 0 deletions

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)