Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Don't use keyword arguments when initialising modules (#13060)
Browse files Browse the repository at this point in the history
  • Loading branch information
babolivier committed Jun 15, 2022
1 parent 75fb10e commit 417f4cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/13060.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Don't instantiate modules with keyword arguments.
2 changes: 1 addition & 1 deletion synapse/app/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def run_sighup(*args: Any, **kwargs: Any) -> None:
# before we start the listeners.
module_api = hs.get_module_api()
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)

load_legacy_spam_checkers(hs)
Expand Down

0 comments on commit 417f4cf

Please sign in to comment.