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
|
hours = form.hours.data
|
||||||
minutes = form.minutes.data
|
minutes = form.minutes.data
|
||||||
try:
|
try:
|
||||||
|
# try to read ics file
|
||||||
calendar = Calendar.from_ical(file.read())
|
calendar = Calendar.from_ical(file.read())
|
||||||
except ValueError:
|
except ValueError:
|
||||||
error = 'can\'t read file'
|
error = 'can\'t read file'
|
||||||
|
|
Loading…
Reference in a new issue