Skip to content

Commit 3f2b58c

Browse files
author
y-p
committed
CLN: add clarifying comment to ipython_directive.py
1 parent 3d10a2b commit 3f2b58c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/sphinxext/ipython_directive.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ def process_input(self, data, input_prompt, lineno):
438438
elif is_semicolon: # get spacing right
439439
ret.append('')
440440

441+
# output any exceptions raised during execution to stdout
442+
# unless :okexcept: has been specified.
441443
if not is_okexcept and "Traceback" in output:
442444
sys.stdout.write(output)
443445

0 commit comments

Comments
 (0)