Skip to content

Commit 37ddbe3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8ab4afa commit 37ddbe3

File tree

1 file changed

+1
-1
lines changed
  • src/lightning/pytorch/trainer

1 file changed

+1
-1
lines changed

src/lightning/pytorch/trainer/call.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _call_and_handle_interrupt(trainer: "pl.Trainer", trainer_fn: Callable, *arg
5151
trainer.state.status = TrainerStatus.FINISHED
5252
trainer.state.stage = None
5353

54-
except KeyboardInterrupt as exception:
54+
except KeyboardInterrupt:
5555
rank_zero_warn("Detected KeyboardInterrupt, attempting graceful shutdown...")
5656
# user could press Ctrl+C many times, disable KeyboardInterrupt for shutdown
5757
signal.signal(signal.SIGINT, signal.SIG_IGN)

0 commit comments

Comments
 (0)