Skip to content

Commit 3c7afbd

Browse files
authored
Merge pull request #6545 from krassowski/forwardport-6461-on-6.5
Forward port of #6461: Fix a typo in exception text
2 parents 4fe291e + 8af9729 commit 3c7afbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/services/contents/filemanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def rename_file(self, old_path, new_path):
576576
return
577577

578578
if (is_hidden(old_path, self.root_dir) or is_hidden(new_path, self.root_dir)) and not self.allow_hidden:
579-
raise web.HTTPError(400, f'Cannot rename file or directory {os_path!r}')
579+
raise web.HTTPError(400, f'Cannot rename file or directory {old_path!r}')
580580

581581
# Perform path validation prior to converting to os-specific value since this
582582
# is still relative to root_dir.

0 commit comments

Comments
 (0)