From 526c3e3d6787e2ab8e1ba5afb18fab191de5c6a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Fri, 19 May 2023 23:54:03 +0100 Subject: [PATCH] tlsappointmentbot: Also *log* exceptions if we ignore them --- src/tlsappointmentbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tlsappointmentbot.py b/src/tlsappointmentbot.py index fe587d3..a458ae5 100644 --- a/src/tlsappointmentbot.py +++ b/src/tlsappointmentbot.py @@ -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)