From dcbf444872b81248ce958f05d47abad6e8a237a7 Mon Sep 17 00:00:00 2001
From: robot-piglet <robot-piglet@yandex-team.com>
Date: Wed, 18 Dec 2024 11:04:10 +0300
Subject: Intermediate changes
 commit_hash:1f2ebe313aea1039145a9d68dcd511d5f22f383a

---
 contrib/python/ipython/py3/IPython/sphinxext/custom_doctests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'contrib/python/ipython/py3/IPython/sphinxext/custom_doctests.py')

diff --git a/contrib/python/ipython/py3/IPython/sphinxext/custom_doctests.py b/contrib/python/ipython/py3/IPython/sphinxext/custom_doctests.py
index 75c2a25ccb..f0ea034a6d 100644
--- a/contrib/python/ipython/py3/IPython/sphinxext/custom_doctests.py
+++ b/contrib/python/ipython/py3/IPython/sphinxext/custom_doctests.py
@@ -107,7 +107,7 @@ def float_doctest(sphinx_shell, args, input_lines, found, submitted):
         try:
             rtol = float(args[2])
             atol = float(args[3])
-        except IndexError as e:
+        except IndexError:
             e = ("Both `rtol` and `atol` must be specified "
                  "if either are specified: {0}".format(args))
             raise IndexError(e) from e
-- 
cgit v1.2.3