From a49bc9ca755b61a9f429d4fa1aca40bd9ea66d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 4 Jul 2016 19:02:12 +0200 Subject: [PATCH] Fixed wrong placeholders in format string for exception --- src/octoprint/filemanager/storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/filemanager/storage.py b/src/octoprint/filemanager/storage.py index bbbc51aa..f3d4dd5f 100644 --- a/src/octoprint/filemanager/storage.py +++ b/src/octoprint/filemanager/storage.py @@ -398,7 +398,7 @@ class LocalFileStorage(StorageInterface): folder_path = os.path.join(path, name) if os.path.exists(folder_path): if not ignore_existing: - raise RuntimeError("{sanitized_foldername} does already exist in {virtual_path}".format(**locals())) + raise RuntimeError("{name} does already exist in {path}".format(**locals())) else: os.mkdir(folder_path) @@ -415,7 +415,7 @@ class LocalFileStorage(StorageInterface): if ".metadata.yaml" in contents: contents.remove(".metadata.yaml") if contents and not recursive: - raise RuntimeError("{sanitized_foldername} in {virtual_path} is not empty".format(**locals())) + raise RuntimeError("{name} in {path} is not empty".format(**locals())) import shutil shutil.rmtree(folder_path)