Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Catch and ignore error setting IPython's user_global_ns. (reported by…

… Aaron Meurer)
  • Loading branch information...
commit 14c076baec8af131ffaa087a534a5f6bab2c9d6e 1 parent 8d0a9a4
@inducer authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 pudb/shell.py
View
9 pudb/shell.py
@@ -112,11 +112,16 @@ def run_ipython_shell_v11(locals, globals, first_time):
def _update_ns(shell, locals, globals):
'''Update the IPython 0.11 namespace at every visit'''
+
shell.user_ns = locals.copy()
- shell.user_global_ns = globals
+
+ try:
+ shell.user_global_ns = globals
+ except AttributeError:
+ pass
+
shell.init_user_ns()
shell.init_completer()
- return
# Set the proper ipython shell
if HAVE_IPYTHON and hasattr(IPython, 'Shell'):
Please sign in to comment.
Something went wrong with that request. Please try again.