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

Commit

Permalink
Fix running with an empty experimental features section.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Jul 12, 2023
1 parent 92014fb commit a160ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/config/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:

# The default value of password_config.enabled is True, unless msc3861 is enabled.
msc3861_enabled = (
config.get("experimental_features", {})
(config.get("experimental_features") or {})
.get("msc3861", {})
.get("enabled", False)
)
Expand Down

0 comments on commit a160ddc

Please sign in to comment.