Skip to content

Commit

Permalink
Catch OSError to handle ctrl-c due to signal handlers in base_service
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreso committed Jan 26, 2024
1 parent 64566cb commit a8ca0c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ert/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def run_cli(args: Namespace, _: Any = None) -> None:
thread.start()
try:
monitor.monitor(status_queue)
except (SystemExit, KeyboardInterrupt):
except (SystemExit, KeyboardInterrupt, OSError):
print("\nKilling simulations...")
model.cancel()

Expand Down

0 comments on commit a8ca0c5

Please sign in to comment.