MCPcopy Index your code
hub / github.com/bpython/bpython / post_mortem

Function post_mortem

bpdb/__init__.py:50–63  ·  view source on GitHub ↗
(t=None)

Source from the content-addressed store, hash-verified

48
49
50def post_mortem(t=None):
51 # handling the default
52 if t is None:
53 # sys.exc_info() returns (type, value, traceback) if an exception is
54 # being handled, otherwise it returns None
55 t = sys.exc_info()[2]
56 if t is None:
57 raise ValueError(
58 "A valid traceback must be passed if no exception is being handled."
59 )
60
61 p = BPdb()
62 p.reset()
63 p.interaction(None, t)
64
65
66def pm():

Callers 1

pmFunction · 0.85

Calls 2

BPdbClass · 0.85
resetMethod · 0.45

Tested by

no test coverage detected