Skip to content

Commit

Permalink
Catch CancelledError in scheduler_cli run function
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Jul 14, 2020
1 parent c6c9062 commit e55c041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cylc/flow/scheduler_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ async def _run(parser, options, reg, is_restart, scheduler):
# stop cylc stop
except SchedulerError:
ret = 1
except KeyboardInterrupt as exc:
except (KeyboardInterrupt, asyncio.exceptions.CancelledError) as exc:
try:
await scheduler.shutdown(exc)
except Exception as exc2:
Expand Down

0 comments on commit e55c041

Please sign in to comment.