Fix running with an empty experimental features section. (#15925)

pull/15928/head
Patrick Cloke 2023-07-12 08:39:25 -04:00 committed by GitHub
parent 36c6b92bfc
commit 5bdf01fccd
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/15925.bugfix Normal file
View File

@ -0,0 +1 @@
Fix a bug introduced in 1.86.0 where Synapse starting with an empty `experimental_features` configuration setting.

View File

@ -31,7 +31,7 @@ class AuthConfig(Config):
# 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)
)