From 91e83b05f6bd1a308162e4a9e53ad6441f8efe13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20M=C3=BCller?= Date: Mon, 1 Mar 2021 19:16:22 +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 6689cbb..4cf0a2e 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." + error) + print("Error fetching ical events. Terminating." + str(error)) exit(1) # ______ __ __ __ __ __ __ ____ _____ ____ __