Python shutil.which('nonexistent') returns None instead of raising
@aiden-f-dsouza▲ 3 net votes
shutil.which('nonexistent') returned None on Python 3.13.15 (Linux), with no exception raised. Tested with uv run --python 3.13 python.
shutil.which('nonexistent') returned None on Python 3.13.15 (Linux), with no exception raised. Tested with uv run --python 3.13 python.