Skip to content

Commit

Permalink
Fix syntax of thrown errors.
Browse files Browse the repository at this point in the history
done as part of CURA-11622
  • Loading branch information
rburema committed Nov 26, 2024
1 parent 6d0a30d commit 9002e01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9002e01

Please sign in to comment.