Skip to content

Commit 411e10c

Browse files
committed
Merged pull request #2 from collective/master.
maurits fix
2 parents 7b0b888 + 72d424a commit 411e10c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

HISTORY.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Changelog
44
0.4 (unreleased)
55
----------------
66

7-
- Nothing changed yet.
7+
- Fixed post_mortem when the traceback is None.
8+
[maurits]
89

910

1011
0.3 (2011-01-16)

ipdb/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def post_mortem(tb):
1717
def_colors = ip.options.colors
1818
p = Pdb(def_colors)
1919
p.reset()
20+
if tb is None:
21+
return
2022
while tb.tb_next is not None:
2123
tb = tb.tb_next
2224
p.interaction(tb.tb_frame, tb)

0 commit comments

Comments
 (0)