Fix payment models, ignore unused backends

master
Alice 8 years ago
parent 31ed3157d1
commit af69da95d6

@ -51,6 +51,9 @@ for cls in BackendBase.__subclasses__():
name = cls.backend_id name = cls.backend_id
assert isinstance(name, str) assert isinstance(name, str)
if name not in backend_settings:
continue
obj = cls(backend_settings.get(name, {})) obj = cls(backend_settings.get(name, {}))
if not obj.backend_enabled: if not obj.backend_enabled:
if name in backend_settings: if name in backend_settings:

Loading…
Cancel
Save