Fix a regression from calling read_templates. (#8252)

Regressed in #8037.
This commit is contained in:
Patrick Cloke authored and GitHub committed 2020-09-04 09:10:33 -04:00
1 parent e351298444
commit db7de4d182
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
Use the default template file when its equivalent is not found in a custom template directory.
+1 -1
View File
@@ -171,7 +171,7 @@ class SAML2Config(Config):
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