Skip to content

Commit

Permalink
Add guard for None-type exe_version
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoesters committed Sep 20, 2024
1 parent e618675 commit e86696c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion constructor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e86696c

Please sign in to comment.