Skip to content

Commit 0e8efc2

Browse files
committed
Work around uninit bug
1 parent d432367 commit 0e8efc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

trepan/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def debug(dbg_opts=None, start_opts=None, post_mortem=True,
185185
>>> dbgr
186186
<trepan.debugger.Debugger instance at 0x2e25320>
187187
"""
188-
if isinstance(Mdebugger.Debugger, Mdebugger.debugger_obj):
188+
if Mdebugger.debugger_obj is None or isinstance(Mdebugger.Debugger, Mdebugger.debugger_obj):
189189
Mdebugger.debugger_obj = Mdebugger.Debugger(dbg_opts)
190190
Mdebugger.debugger_obj.core.add_ignore(debug, stop)
191191
pass

0 commit comments

Comments
 (0)