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

Commit

Permalink
Fix a regression from calling read_templates. (#8252)
Browse files Browse the repository at this point in the history
Regressed in #8037.
  • Loading branch information
clokep authored Sep 4, 2020
1 parent e351298 commit db7de4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/8252.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use the default template file when its equivalent is not found in a custom template directory.
2 changes: 1 addition & 1 deletion synapse/config/saml2_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def read_config(self, config, **kwargs):

self.saml2_error_html_template = self.read_templates(
["saml_error.html"], saml2_config.get("template_dir")
)
)[0]

def _default_saml_config_dict(
self, required_attributes: set, optional_attributes: set
Expand Down

0 comments on commit db7de4d

Please sign in to comment.