diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-11-18 15:44:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-18 15:44:43 (GMT) |
commit | c8c6113398ee9a7867fe9b08bc539cceb61e2aaa (patch) | |
tree | 61ce8fc106b5578aeeeb524703bd195eabffab0a /Doc/library/exceptions.rst | |
parent | a220c6d1ee3053895f502b43b47dc3a9c55fa6a3 (diff) | |
download | cpython-c8c6113398ee9a7867fe9b08bc539cceb61e2aaa.zip cpython-c8c6113398ee9a7867fe9b08bc539cceb61e2aaa.tar.gz cpython-c8c6113398ee9a7867fe9b08bc539cceb61e2aaa.tar.bz2 |
gh-99553: fix bug where an ExceptionGroup subclass can wrap a BaseException (GH-99572)
Diffstat (limited to 'Doc/library/exceptions.rst')
-rw-r--r-- | Doc/library/exceptions.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index fc85627..4271a30 100644 --- a/Doc/library/exceptions.rst +++ b/Doc/library/exceptions.rst @@ -965,6 +965,10 @@ their subgroups based on the types of the contained exceptions. def derive(self, excs): return Errors(excs, self.exit_code) + Like :exc:`ExceptionGroup`, any subclass of :exc:`BaseExceptionGroup` which + is also a subclass of :exc:`Exception` can only wrap instances of + :exc:`Exception`. + .. versionadded:: 3.11 |