This commit is contained in:
parent
d9f0619c11
commit
270454e7e6
1 changed files with 1 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue