mirror of
https://github.com/element-hq/synapse
synced 2024-09-01 11:00:20 +00:00
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.
This commit is contained in:
parent
473d3801b6
commit
01243b98e1
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ def load_module(provider):
|
||||||
provider_class = getattr(module, clz)
|
provider_class = getattr(module, clz)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
provider_config = provider_class.parse_config(provider["config"])
|
provider_config = provider_class.parse_config(provider.get("config"))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise ConfigError("Failed to parse config for %r: %r" % (provider["module"], e))
|
raise ConfigError("Failed to parse config for %r: %r" % (provider["module"], e))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue