Skip to content

Commit b161699

Browse files
Fix error checking python version (#30)
1 parent 82050ff commit b161699

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extension/debugger/adapter/factory.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ export class DebugAdapterDescriptorFactory implements IDebugAdapterDescriptorFac
175175

176176
private async getExecutableCommand(interpreter: Environment | undefined): Promise<string[]> {
177177
if (interpreter) {
178-
if ((interpreter.version?.major ?? 0) < 3 || (interpreter.version?.minor ?? 0) <= 6) {
178+
if (
179+
(interpreter.version?.major ?? 0) < 3 ||
180+
((interpreter.version?.major ?? 0) <= 3 && (interpreter.version?.minor ?? 0) <= 6)
181+
) {
179182
this.showDeprecatedPythonMessage();
180183
}
181184
return interpreter.path.length > 0 ? [interpreter.path] : [];

0 commit comments

Comments
 (0)