From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 23 Mar 2026 23:08:07 +0000 (+0100) Subject: [3.13] docs: fix f-string in ExceptionGroup example (GH-146108) (GH-146127) X-Git-Tag: v3.13.13~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=daa4106426f0a389602336ca0671b0045a63c598;p=thirdparty%2FPython%2Fcpython.git [3.13] docs: fix f-string in ExceptionGroup example (GH-146108) (GH-146127) (cherry picked from commit 2c6afb935ad588f32cb969345d0345e45d3a766e) Co-authored-by: Bartosz Grabowski <58475557+bartosz-grabowski@users.noreply.github.com> --- diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index bfb281c1b7d6..c56aeb0398ea 100644 --- a/Doc/tutorial/errors.rst +++ b/Doc/tutorial/errors.rst @@ -545,9 +545,9 @@ caught like any other exception. :: >>> try: ... f() ... except Exception as e: - ... print(f'caught {type(e)}: e') + ... print(f'caught {type(e)}: {e}') ... - caught : e + caught : there were problems (2 sub-exceptions) >>> By using ``except*`` instead of ``except``, we can selectively