From b508dd572456212ec89138f9f7686d9f741c25e3 Mon Sep 17 00:00:00 2001 From: Eric Charles Date: Sun, 25 Sep 2022 03:54:52 +0200 Subject: [PATCH] Backport PR #6461: Fix a typo in exception text --- notebook/services/contents/filemanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/services/contents/filemanager.py b/notebook/services/contents/filemanager.py index 5754e94074..646b2b36e0 100644 --- a/notebook/services/contents/filemanager.py +++ b/notebook/services/contents/filemanager.py @@ -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.