Skip to content

Commit

Permalink
closes #93
Browse files Browse the repository at this point in the history
  • Loading branch information
gotcha committed Apr 15, 2016
1 parent bf27ec8 commit 39709cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
0.9.2 (unreleased)
------------------

- Nothing changed yet.
- Closes https://github.com/gotcha/ipdb/issues/93
[gotcha]


0.9.1 (2016-04-12)
Expand Down
3 changes: 2 additions & 1 deletion ipdb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def set_trace(frame=None, context=3):
if frame is None:
frame = sys._getframe().f_back
p = _init_pdb(context).set_trace(frame)
p.shell.restore_sys_module_state()
if p and hasattr(p, 'shell'):
p.shell.restore_sys_module_state()


def post_mortem(tb):
Expand Down

0 comments on commit 39709cf

Please sign in to comment.