@@ -13,7 +13,11 @@ https://cs.uwaterloo.ca/twiki/view/CrySP/UpcomingEvents
"""
def str_to_date(string_date):
- return date(*[int(s) for s in string_date.split('-')])
+ try:
+ return date(*[int(s) for s in string_date.split('-')])
+ except:
+ print("invalid date: " + string_date)
+ sys.exit()
class CryspCalendar:
"""Representation of a CrySP weekly meeting schedule for a term"""