summaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py3/IPython/sphinxext/custom_doctests.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/ipython/py3/IPython/sphinxext/custom_doctests.py')
-rw-r--r--contrib/python/ipython/py3/IPython/sphinxext/custom_doctests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/python/ipython/py3/IPython/sphinxext/custom_doctests.py b/contrib/python/ipython/py3/IPython/sphinxext/custom_doctests.py
index 75c2a25ccb7..f0ea034a6db 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