From e86696cbb63a7ddcbe7f497fccef707c820064d6 Mon Sep 17 00:00:00 2001 From: Marco Esters Date: Fri, 20 Sep 2024 10:37:58 -0700 Subject: [PATCH] Add guard for None-type exe_version --- constructor/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/constructor/main.py b/constructor/main.py index 17cd5478..c3ab5cce 100644 --- a/constructor/main.py +++ b/constructor/main.py @@ -94,7 +94,8 @@ def main_build(dir_path, output_dir='.', platform=cc_platform, sys.exit("Error: cannot construct a macOS 'pkg' installer on '%s'" % cc_platform) exe_type, exe_version = identify_conda_exe(info.get("_conda_exe")) - exe_version = Version(exe_version) + if exe_version is not None: + exe_version = Version(exe_version) info["_conda_exe_type"] = exe_type info["_conda_exe_version"] = exe_version if osname == "win" and exe_type == StandaloneExe.MAMBA: