2 parents 7b0b888 + 72d424a commit 411e10cCopy full SHA for 411e10c
2 files changed
HISTORY.txt
@@ -4,7 +4,8 @@ Changelog
4
0.4 (unreleased)
5
----------------
6
7
-- Nothing changed yet.
+- Fixed post_mortem when the traceback is None.
8
+ [maurits]
9
10
11
0.3 (2011-01-16)
ipdb/__init__.py
@@ -17,6 +17,8 @@ def post_mortem(tb):
17
def_colors = ip.options.colors
18
p = Pdb(def_colors)
19
p.reset()
20
+ if tb is None:
21
+ return
22
while tb.tb_next is not None:
23
tb = tb.tb_next
24
p.interaction(tb.tb_frame, tb)
0 commit comments