Skip to content

Commit

Permalink
Isolate better traceback printing
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelVaroquaux committed Feb 12, 2009
1 parent 8e1e827 commit af8a474
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion IPython/frontend/prefilterfrontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ def __init__(self, ipython0=None, *args, **kwargs):
def show_traceback(self):
""" Use ipython0 to capture the last traceback and display it.
"""
self.capture_output()
# Don't do the capture; the except_hook has already done some
# modifications to the IO streams, if we store them, we'll be
# storing the wrong ones.
#self.capture_output()
self.ipython0.showtraceback(tb_offset=-1)
self.release_output()

Expand Down

0 comments on commit af8a474

Please sign in to comment.