Skip to content
Snippets Groups Projects
Commit 01243b98 authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

Handle `config` not being set for synapse plugin modules

Some modules don't need any config, so having to define a `config` property
just to keep the loader happy is a bit annoying.
parent 473d3801
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ def load_module(provider):
provider_class = getattr(module, clz)
try:
provider_config = provider_class.parse_config(provider["config"])
provider_config = provider_class.parse_config(provider.get("config"))
except Exception as e:
raise ConfigError("Failed to parse config for %r: %r" % (provider["module"], e))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment