Skip to content

Commit

Permalink
Merge pull request #6461 from krassowski/patch-1
Browse files Browse the repository at this point in the history
Fix a typo in exception text
  • Loading branch information
echarles authored Sep 25, 2022
2 parents 3e5b767 + f939c8f commit 9affa19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook/services/contents/filemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def rename_file(self, old_path, new_path):
return

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

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

0 comments on commit 9affa19

Please sign in to comment.