Skip to content

Commit cd55e0b

Browse files
committed
docs{model_checkpoint): rephrase note
1 parent 1d710df commit cd55e0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lightning/pytorch/callbacks/model_checkpoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ class ModelCheckpoint(Checkpoint):
156156
only ``best_model_path`` will be reloaded and a warning will be issued.
157157
158158
If you provide a ``filename`` on a mounted device where changing permissions is not allowed (causing ``chmod``
159-
to raise ``PermissionError``), Lightning will catch the error, leave the file's permissions as-is, and still
160-
save the checkpoint.
159+
to raise a ``PermissionError``), the error is cached, the file's permissions remain unchanged, and the
160+
checkpoint is still saved.
161161
162162
Raises:
163163
MisconfigurationException:

0 commit comments

Comments
 (0)