events: alert on malformed start command
This commit is contained in:
parent
8a25ebb45b
commit
015fb47d90
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue