File tree 1 file changed +5
-2
lines changed
src/client/pythonEnvironments/common 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import * as path from 'path';
7
7
import { uniq } from 'lodash' ;
8
8
import { getSearchPathEntries } from '../../common/utils/exec' ;
9
9
import { resolveSymbolicLink } from './externalDependencies' ;
10
- import { traceError , traceInfo , traceVerbose } from '../../logging' ;
10
+ import { traceError , traceInfo , traceVerbose , traceWarn } from '../../logging' ;
11
11
12
12
/**
13
13
* Determine if the given filename looks like the simplest Python executable.
@@ -117,7 +117,10 @@ function pickShortestPath(pythonPaths: string[]) {
117
117
export async function getPythonBinFromPosixPaths ( searchDirs : string [ ] ) : Promise < string [ ] > {
118
118
const binToLinkMap = new Map < string , string [ ] > ( ) ;
119
119
for ( const searchDir of searchDirs ) {
120
- const paths = await findPythonBinariesInDir ( searchDir ) ;
120
+ const paths = await findPythonBinariesInDir ( searchDir ) . catch ( ( ex ) => {
121
+ traceWarn ( 'Looking for python binaries within' , searchDir , 'failed with' , ex ) ;
122
+ return [ ] ;
123
+ } ) ;
121
124
122
125
for ( const filepath of paths ) {
123
126
// Ensure that we have a collection of unique global binaries by
You can’t perform that action at this time.
0 commit comments