From: Bartosz Grabowski <58475557+bartosz-grabowski@users.noreply.github.com> Date: Wed, 18 Mar 2026 16:49:15 +0000 (+0100) Subject: docs: fix f-string in ExceptionGroup example (#146108) X-Git-Tag: v3.15.0a8~263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c6afb935ad588f32cb969345d0345e45d3a766e;p=thirdparty%2FPython%2Fcpython.git docs: fix f-string in ExceptionGroup example (#146108) --- diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index ae21dfdbf0ac..3c6edf2c4793 100644 --- a/Doc/tutorial/errors.rst +++ b/Doc/tutorial/errors.rst @@ -549,9 +549,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