🐛 Preventing error in case of a misbehaving dateutil / timezone
This commit is contained in:
parent
0f17defb11
commit
91e83b05f6
2
main.py
2
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)
|
||||
|
||||
# ______ __ __ __ __ __ __ ____ _____ ____ __
|
||||
|
|
Loading…
Reference in New Issue
Block a user