MCPcopy Index your code
hub / github.com/ipython/ipython / handler

Method handler

IPython/core/doctb.py:425–432  ·  view source on GitHub ↗
(self, info: tuple[Any, Any, Any] | None = None)

Source from the content-addressed store, hash-verified

423 raise RuntimeError("canot rundebugger in Docs mode")
424
425 def handler(self, info: tuple[Any, Any, Any] | None = None) -> None:
426 (etype, evalue, etb) = info or sys.exc_info()
427 self.tb = etb
428 ostream = self.ostream
429 ostream.flush()
430 ostream.write(self.text(etype, evalue, etb)) # type:ignore[arg-type]
431 ostream.write("\n")
432 ostream.flush()
433
434 # Changed so an instance can just be called as VerboseTB_inst() and print
435 # out the right info on its own.

Callers 1

__call__Method · 0.95

Calls 3

flushMethod · 0.45
writeMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected