events: alert on malformed start command
This commit is contained in:
parent
8a25ebb45b
commit
015fb47d90
|
@ -166,6 +166,9 @@ def start_countdown(msg):
|
||||||
else:
|
else:
|
||||||
evt.end += timedelta(seconds=int(t))
|
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.data[msg.args[0]] = evt
|
||||||
context.save()
|
context.save()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue