From 9002e010cfa10aa4358ecfacb02c9a8fdfc1344c Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Tue, 26 Nov 2024 15:06:48 +0100 Subject: [PATCH] Fix syntax of thrown errors. done as part of CURA-11622 --- conanfile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conanfile.py b/conanfile.py index 2c34d55c4d4..23f77b708c0 100644 --- a/conanfile.py +++ b/conanfile.py @@ -182,11 +182,11 @@ def _generate_pyinstaller_spec(self, location, entrypoint_location, icon_path, e src_path = str(Path(cura_source_folder, data["src"])) else: if data["package"] not in self.dependencies: - raise ConanException(f"Required package {data["package"]} does not exist as a dependency") + raise ConanException(f"Required package {data['package']} does not exist as a dependency") - package_folder = self.dependencies[data["package"]].package_folder + package_folder = self.dependencies[data['package']].package_folder if package_folder is None: - raise ConanException(f"Unable to find package_folder for {data["package"]}, check that it has not been skipped") + raise ConanException(f"Unable to find package_folder for {data['package']}, check that it has not been skipped") src_path = os.path.join(self.dependencies[data["package"]].package_folder, data["src"]) elif "root" in data: # get the paths relative from the install folder