aboutsummaryrefslogtreecommitdiff
path: root/management/commands
diff options
context:
space:
mode:
authorAlban Gruin2017-11-07 17:40:44 +0100
committerAlban Gruin2017-11-07 17:40:44 +0100
commit9447e0865c9d8a374ff6feb1bcf501c5eb73faf2 (patch)
tree9baa5b1897a0000ade4fae2fed794568198f6459 /management/commands
parent60b2ceaa43d01e34514f3e68f45585619807d1cf (diff)
La commande `timetables` n’affiche pas de trace d’erreur lorsqu’on l’arrête avec un Ctrl-C.
Diffstat (limited to 'management/commands')
-rw-r--r--management/commands/timetables.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/management/commands/timetables.py b/management/commands/timetables.py
index b254788..ff00c8f 100644
--- a/management/commands/timetables.py
+++ b/management/commands/timetables.py
@@ -136,6 +136,8 @@ class Command(BaseCommand):
try:
process_timetable(timetable, options["force"], year, weeks)
+ except KeyboardInterrupt:
+ break
except Exception:
self.stderr.write(
self.style.ERROR("Failed to process {0}:".format(timetable))