From 0f17defb113fd43a6bf4533b4ec93b2213a9820a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20M=C3=BCller?= Date: Mon, 1 Mar 2021 18:08:48 +0100 Subject: [PATCH] :bug: Preventing error in case of a misbehaving dateutil / timezone --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 352f68b..6689cbb 100644 --- a/main.py +++ b/main.py @@ -27,7 +27,7 @@ def crawl(): end=datetime.strptime((datetime.now() + timedelta(days=365)).strftime('%Y-%m-%d'), '%Y-%m-%d')) except ValueError as error: # Value error sometimes happens because of a problem with dateutil and timezones - print("Error fetching ical events. Terminating." + str(error.with_traceback())) + print("Error fetching ical events. Terminating." + error) exit(1) # ______ __ __ __ __ __ __ ____ _____ ____ __