1
0
Fork 0

events: alert on malformed start command

This commit is contained in:
nemunaire 2018-06-03 09:58:38 +02:00
parent 8a25ebb45b
commit 015fb47d90
1 changed files with 3 additions and 0 deletions

View File

@ -166,6 +166,9 @@ def start_countdown(msg):
else:
evt.end += timedelta(seconds=int(t))
else:
raise IMException("Mauvais format de date pour l'événement %s. Il n'a pas été créé." % msg.args[0])
context.data[msg.args[0]] = evt
context.save()