Browse Source

Fix version if version is None

Contributes to CURA-9365
j.spijker@ultimaker.com 2 years ago
parent
commit
82904ccd3f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      conanfile.py

+ 1 - 1
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(