Skip to content

Commit 676de71

Browse files
committed
fix exeption to catch
1 parent 9a9523b commit 676de71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ def pytest_configure():
135135
mamba_cmd = "micromamba"
136136
try:
137137
subprocess.run(["which", mamba_cmd], check=True)
138-
except subprocess.CalledProcessError:
138+
except (subprocess.CalledProcessError, FileNotFoundError):
139139
mamba_cmd = "mamba"
140140
try:
141141
subprocess.run(["which", mamba_cmd], check=True)
142-
except subprocess.CalledProcessError:
142+
except (subprocess.CalledProcessError, FileNotFoundError):
143143
pytest.mamba_cmd = None
144144

145145
pytest.mamba_cmd = mamba_cmd

0 commit comments

Comments
 (0)