Skip to content

Commit 56a4ea9

Browse files
fix(aegis-vscode): handle failure to find python version
1 parent a463427 commit 56a4ea9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

aegis-vscode/src/extension.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,12 @@ async function getPythonInterpreter(
616616
}
617617

618618
const v = activeEnv.version;
619+
620+
if (v.major == -1) {
621+
logger.error(`Could not resolve python version!`);
622+
return;
623+
}
624+
619625
const pythonVersion = semver.parse(`${v.major}.${v.minor}.${v.micro}`);
620626

621627
// Check to see if the environment satisfies the min Python version.

0 commit comments

Comments
 (0)