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

Method prepare_chained_exception_message

IPython/core/ultratb.py:544–552  ·  view source on GitHub ↗
(self, cause)

Source from the content-addressed store, hash-verified

542 return chained_evalue.__class__, chained_evalue, chained_evalue.__traceback__
543
544 def prepare_chained_exception_message(self, cause):
545 direct_cause = "\nThe above exception was the direct cause of the following exception:\n"
546 exception_during_handling = "\nDuring handling of the above exception, another exception occurred:\n"
547
548 if cause:
549 message = [[direct_cause]]
550 else:
551 message = [[exception_during_handling]]
552 return message
553
554 def set_colors(self, *args, **kw):
555 """Shorthand access to the color table scheme selector method."""

Callers 2

structured_tracebackMethod · 0.80
structured_tracebackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected