diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2016-03-25 15:26:07 -0700 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2016-03-26 11:39:08 -0700 |
commit | e3cfc9a84f07265000a383f0df50c0655986cdf3 (patch) | |
tree | bf746304f8956abbc6699d42e2b148dfd9316a9c /mediagoblin/gmg_commands/dbupdate.py | |
parent | 5409a6cf2314dd6269067f169bfca200ebee13cb (diff) | |
download | mediagoblin-e3cfc9a84f07265000a383f0df50c0655986cdf3.tar.lz mediagoblin-e3cfc9a84f07265000a383f0df50c0655986cdf3.tar.xz mediagoblin-e3cfc9a84f07265000a383f0df50c0655986cdf3.zip |
dbupdate: Correctly handle plugin foundations
* mediagoblin/gmg_commands/dbupdate.py (run_foundations):
When adding a plugin's foundations, correctly append both
the name and the foundations in a tuple to the list.
This prevents errors.
Diffstat (limited to 'mediagoblin/gmg_commands/dbupdate.py')
-rw-r--r-- | mediagoblin/gmg_commands/dbupdate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/gmg_commands/dbupdate.py b/mediagoblin/gmg_commands/dbupdate.py index 8ec78c73..bafe76bb 100644 --- a/mediagoblin/gmg_commands/dbupdate.py +++ b/mediagoblin/gmg_commands/dbupdate.py @@ -117,7 +117,7 @@ def run_foundations(db, global_config): try: foundations = import_component( '{0}.models:FOUNDATIONS'.format(plugin)) - all_foundations.append(foundations) + all_foundations.append((plugin, foundations)) except ImportError as exc: continue except AttributeError as exc: |