Skip to content

Conversation

@Lakshya-Upadhyaya
Copy link

@Lakshya-Upadhyaya Lakshya-Upadhyaya commented Nov 6, 2025

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

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

@python-cla-bot
Copy link

python-cla-bot bot commented Nov 6, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Document the fact that shutil.Error is a subclass of OSError

2 participants