summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-01-12 19:10:16 +0000
committerRichard van der Hoff <richard@matrix.org>2020-01-12 21:34:36 +0000
commit01243b98e1f6c43efb988bb1f774e72079ab270f (patch)
tree423a76e563a73878edee94ffad2e55295876bba8 /synapse
parentCleanups and additions to the module API (diff)
downloadsynapse-01243b98e1f6c43efb988bb1f774e72079ab270f.tar.xz
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.
Diffstat (limited to 'synapse')
-rw-r--r--synapse/util/module_loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/module_loader.py b/synapse/util/module_loader.py
index 2705cbe5f8..bb62db4637 100644
--- a/synapse/util/module_loader.py
+++ b/synapse/util/module_loader.py
@@ -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))