MCPcopy Create free account
hub / github.com/ipython/ipython / structured_traceback

Method structured_traceback

IPython/core/ultratb.py:1426–1436  ·  view source on GitHub ↗
(self, etype=None, value=None, tb=None,
                             tb_offset=None, number_of_lines_of_context=5)

Source from the content-addressed store, hash-verified

1424 print("\nKeyboardInterrupt")
1425
1426 def structured_traceback(self, etype=None, value=None, tb=None,
1427 tb_offset=None, number_of_lines_of_context=5):
1428 if etype is None:
1429 etype, value, tb = sys.exc_info()
1430 if isinstance(tb, tuple):
1431 # tb is a tuple if this is a chained exception.
1432 self.tb = tb[0]
1433 else:
1434 self.tb = tb
1435 return FormattedTB.structured_traceback(
1436 self, etype, value, tb, tb_offset, number_of_lines_of_context)
1437
1438
1439#---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

structured_tracebackMethod · 0.45

Tested by

no test coverage detected