Skip to content

Commit 4f43028

Browse files
committed
filenotfound error instead of importerror
1 parent cee0ea4 commit 4f43028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mozloc/cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def running_as_root() -> bool:
1212
@functools.cache
1313
def get_exe(name: str, path: str | None = None) -> str:
1414
if not (exe := shutil.which(name, path=path)):
15-
raise ImportError(f"{name} not found")
15+
raise FileNotFoundError(name)
1616
return exe
1717

1818

0 commit comments

Comments
 (0)