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.
This commit is contained in:
parent
5409a6cf23
commit
e3cfc9a84f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user