diff options
-rw-r--r-- | management/commands/timetables.py | 2 |
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)) |