Skip to content

Commit 3ce213e

Browse files
committed
clean up
1 parent f26890f commit 3ce213e

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

src/managers/conda/main.ts

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,13 @@ export async function registerCondaFeatures(
2525
// get Conda will return only ONE conda manager, that correlates to a single conda install
2626
condaPath = await getConda(nativeFinder);
2727
} catch (ex) {
28-
// Only treat the known "Conda not found" error as a skip;
29-
// other errors (e.g. PET timeout/crash) should propagate to safeRegister.
30-
if (ex instanceof Error && ex.message === 'Conda not found') {
31-
traceInfo('Conda not found, turning off conda features.', ex);
32-
sendTelemetryEvent(EventNames.MANAGER_REGISTRATION_SKIPPED, undefined, {
33-
managerName: 'conda',
34-
reason: 'tool_not_found',
35-
});
36-
await notifyMissingManagerIfDefault('ms-python.python:conda', projectManager, api);
37-
return;
38-
}
39-
throw ex;
28+
traceInfo('Conda not found, turning off conda features.', ex);
29+
sendTelemetryEvent(EventNames.MANAGER_REGISTRATION_SKIPPED, undefined, {
30+
managerName: 'conda',
31+
reason: 'tool_not_found',
32+
});
33+
await notifyMissingManagerIfDefault('ms-python.python:conda', projectManager, api);
34+
return;
4035
}
4136

4237
// Conda was found — errors below are real registration failures (let safeRegister handle them)

0 commit comments

Comments
 (0)