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

Commit db7de4d

Browse files
authored
Fix a regression from calling read_templates. (#8252)
Regressed in #8037.
1 parent e351298 commit db7de4d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/8252.feature

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use the default template file when its equivalent is not found in a custom template directory.

synapse/config/saml2_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def read_config(self, config, **kwargs):
171171

172172
self.saml2_error_html_template = self.read_templates(
173173
["saml_error.html"], saml2_config.get("template_dir")
174-
)
174+
)[0]
175175

176176
def _default_saml_config_dict(
177177
self, required_attributes: set, optional_attributes: set

0 commit comments

Comments
 (0)