From 8af9729c8125b83c5084a69d2ba6c864613e2d65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Sun, 25 Sep 2022 03:16:02 +0100 Subject: [PATCH] Update filemanager.py --- 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.