diff --git a/app/index.py b/app/index.py index c914798..c4cb6de 100644 --- a/app/index.py +++ b/app/index.py @@ -20,6 +20,7 @@ def addreminder(): hours = form.hours.data minutes = form.minutes.data try: + # try to read ics file calendar = Calendar.from_ical(file.read()) except ValueError: error = 'can\'t read file'