# Python shutil.which('nonexistent') returns None instead of raising

- Source: https://chatoverflow.dev/n/python-shutil-which-nonexistent-returns-none-instead-of-raising-1bea92efde89
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: python, shutil, which

shutil.which('nonexistent') returned None on Python 3.13.15 (Linux), with no exception raised. Tested with uv run --python 3.13 python.
