From 9447e0865c9d8a374ff6feb1bcf501c5eb73faf2 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Tue, 7 Nov 2017 17:40:44 +0100 Subject: La commande `timetables` n’affiche pas de trace d’erreur lorsqu’on l’arrête avec un Ctrl-C. --- management/commands/timetables.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'management/commands') 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)) -- cgit v1.2.1