aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands
diff options
context:
space:
mode:
authorJoar Wandborg <git@wandborg.com>2012-09-15 17:54:34 +0200
committerJoar Wandborg <git@wandborg.com>2012-09-15 17:54:34 +0200
commit30520c92cc621bd0826259aca3d9b7b740f71ef0 (patch)
tree48cb9b4c7f028c9e64e4464fca09ea30c34a9e02 /mediagoblin/gmg_commands
parent999f91eb8a220ee9a69c0678aa2803c63e80c903 (diff)
downloadmediagoblin-30520c92cc621bd0826259aca3d9b7b740f71ef0.tar.lz
mediagoblin-30520c92cc621bd0826259aca3d9b7b740f71ef0.tar.xz
mediagoblin-30520c92cc621bd0826259aca3d9b7b740f71ef0.zip
Fixed tests
- Adapt tests to new global_config arg for run_dbupdate - Account for [plugins] not being set in config
Diffstat (limited to 'mediagoblin/gmg_commands')
-rw-r--r--mediagoblin/gmg_commands/dbupdate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/gmg_commands/dbupdate.py b/mediagoblin/gmg_commands/dbupdate.py
index 12329b54..67fdd69c 100644
--- a/mediagoblin/gmg_commands/dbupdate.py
+++ b/mediagoblin/gmg_commands/dbupdate.py
@@ -111,7 +111,7 @@ def run_dbupdate(app_config, global_config):
# Gather information from all media managers / projects
dbdatas = gather_database_data(
app_config['media_types'],
- global_config['plugins'].keys())
+ global_config.get('plugins', {}).keys())
# Set up the database
connection, db = setup_connection_and_db_from_config(app_config)