From 95a17b4a85a5b54cb0fbc57bc4af9b174d4cedfd Mon Sep 17 00:00:00 2001 From: Lakshya Upadhyaya Date: Tue, 13 Jan 2026 19:08:26 +0530 Subject: [PATCH] gh-141045: Document that shutil.Error is a subclass of OSError (#141152) --- Doc/library/shutil.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 3a4631e7c657..2c15fed8dd5e 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -515,7 +515,7 @@ Directory and files operations .. exception:: Error - This exception collects exceptions that are raised during a multi-file + Subclass of :exc:`OSError` collecting exceptions raised during a multi-file operation. For :func:`copytree`, the exception argument is a list of 3-tuples (*srcname*, *dstname*, *exception*). -- 2.47.3