aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/gmg_commands/shell.py')
-rw-r--r--mediagoblin/gmg_commands/shell.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mediagoblin/gmg_commands/shell.py b/mediagoblin/gmg_commands/shell.py
index 03e08b23..4998acd7 100644
--- a/mediagoblin/gmg_commands/shell.py
+++ b/mediagoblin/gmg_commands/shell.py
@@ -63,13 +63,12 @@ def shell(args):
"""
Setup a shell for the user either a normal Python shell or an IPython one
"""
- commands_util.check_unrecognized_args(args)
user_namespace = {
'mg_globals': mg_globals,
- 'mgoblin_app': commands_util.setup_app(args[0]),
+ 'mgoblin_app': commands_util.setup_app(args),
'db': mg_globals.database}
- if args[0].ipython:
+ if args.ipython:
ipython_shell(**user_namespace)
else:
# Try ipython_shell first and fall back if not available