Skip to content

Commit

Permalink
fix IPython check in debugger.Tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Oct 15, 2011
1 parent e385f97 commit 09c2492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IPython/core/debugger.py
Expand Up @@ -104,8 +104,8 @@ def __init__(self,colors=None):
"""

try:
ip = ipapi.get()
except:
ip = get_ipython()
except NameError:
# Outside of ipython, we set our own exception hook manually
BdbQuit_excepthook.excepthook_ori = sys.excepthook
sys.excepthook = BdbQuit_excepthook
Expand Down

0 comments on commit 09c2492

Please sign in to comment.