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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/gmg_commands/shell.py b/mediagoblin/gmg_commands/shell.py
index 4998acd7..b19af837 100644
--- a/mediagoblin/gmg_commands/shell.py
+++ b/mediagoblin/gmg_commands/shell.py
@@ -65,10 +65,10 @@ def shell(args):
"""
user_namespace = {
'mg_globals': mg_globals,
- 'mgoblin_app': commands_util.setup_app(args),
+ 'mgoblin_app': commands_util.setup_app(args[0]),
'db': mg_globals.database}
- if args.ipython:
+ if args[0].ipython:
ipython_shell(**user_namespace)
else:
# Try ipython_shell first and fall back if not available