0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-12 04:52:26 +01:00

Don't use keyword arguments when initialising modules (#13060)

This commit is contained in:
Brendan Abolivier 2022-06-15 15:36:16 +02:00 committed by GitHub
parent 75fb10ee45
commit 417f4cf40b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/13060.misc Normal file
View file

@ -0,0 +1 @@
Don't instantiate modules with keyword arguments.

View file

@ -450,7 +450,7 @@ async def start(hs: "HomeServer") -> None:
# before we start the listeners. # before we start the listeners.
module_api = hs.get_module_api() module_api = hs.get_module_api()
for module, config in hs.config.modules.loaded_modules: for module, config in hs.config.modules.loaded_modules:
m = module(config=config, api=module_api) m = module(config, module_api)
logger.info("Loaded module %s", m) logger.info("Loaded module %s", m)
load_legacy_spam_checkers(hs) load_legacy_spam_checkers(hs)