Skip to content

Commit aab26d5

Browse files
committed
Pass on FileNotFoundError too
1 parent 6001280 commit aab26d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ducktools/pythonfinder/venv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def parent_executable(self) -> str:
102102
text=True,
103103
check=True,
104104
)
105-
except _laz.subprocess.CalledProcessError:
105+
except (_laz.subprocess.CalledProcessError, FileNotFoundError):
106106
pass
107107
else:
108108
if out_exe := pyout.stdout.strip():

0 commit comments

Comments
 (0)