From f939c8fdcc2b54a93596a507a5f3bdfcaac93921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Thu, 30 Jun 2022 21:28:50 +0100 Subject: [PATCH] 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.