cpython icon indicating copy to clipboard operation
cpython copied to clipboard

gh-141045: Document that shutil.Error is a subclass of OSError

Open Lakshya-Upadhyaya opened this issue 2 months ago • 1 comments

Fixes #141045

This updates the documentation for shutil.Error to note that it is a subclass of OSError. This clarifies that code catching OSError will also catch shutil.Error, similar to how http.cookiejar.LoadError is documented.

File modified:

  • Doc/library/shutil.rst
  • Issue: gh-141045

📚 Documentation preview 📚: https://cpython-previews--141152.org.readthedocs.build/

Lakshya-Upadhyaya avatar Nov 06 '25 15:11 Lakshya-Upadhyaya

All commit authors signed the Contributor License Agreement.

CLA signed

python-cla-bot[bot] avatar Nov 06 '25 15:11 python-cla-bot[bot]