Skip to content

Commit

Permalink
Fix error checking python version (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulacamargo25 authored Jun 21, 2023
1 parent 82050ff commit b161699
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/extension/debugger/adapter/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ export class DebugAdapterDescriptorFactory implements IDebugAdapterDescriptorFac

private async getExecutableCommand(interpreter: Environment | undefined): Promise<string[]> {
if (interpreter) {
if ((interpreter.version?.major ?? 0) < 3 || (interpreter.version?.minor ?? 0) <= 6) {
if (
(interpreter.version?.major ?? 0) < 3 ||
((interpreter.version?.major ?? 0) <= 3 && (interpreter.version?.minor ?? 0) <= 6)
) {
this.showDeprecatedPythonMessage();
}
return interpreter.path.length > 0 ? [interpreter.path] : [];
Expand Down

0 comments on commit b161699

Please sign in to comment.