We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ab4afa commit 37ddbe3Copy full SHA for 37ddbe3
src/lightning/pytorch/trainer/call.py
@@ -51,7 +51,7 @@ def _call_and_handle_interrupt(trainer: "pl.Trainer", trainer_fn: Callable, *arg
51
trainer.state.status = TrainerStatus.FINISHED
52
trainer.state.stage = None
53
54
- except KeyboardInterrupt as exception:
+ except KeyboardInterrupt:
55
rank_zero_warn("Detected KeyboardInterrupt, attempting graceful shutdown...")
56
# user could press Ctrl+C many times, disable KeyboardInterrupt for shutdown
57
signal.signal(signal.SIGINT, signal.SIG_IGN)
0 commit comments