From 82904ccd3f017ea8da28bf76b21eb15c6ba11782 Mon Sep 17 00:00:00 2001 From: "j.spijker@ultimaker.com" Date: Thu, 7 Jul 2022 20:04:38 +0200 Subject: [PATCH] Fix version if version is None Contributes to CURA-9365 --- conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conanfile.py b/conanfile.py index 8654243698..99b2fb1fe4 100644 --- a/conanfile.py +++ b/conanfile.py @@ -188,7 +188,7 @@ class CuraConan(ConanFile): with open(Path(__file__).parent.joinpath("Ultimaker-Cura.spec.jinja"), "r") as f: pyinstaller = Template(f.read()) - cura_version = tools.Version(self.version) + cura_version = tools.Version(self.version) if self.version else tools.Version("0.0.0") with open(Path(location, "Ultimaker-Cura.spec"), "w") as f: f.write(pyinstaller.render(