mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 02:43:54 +01:00
Don't crash on lack of expiry templates
This commit is contained in:
parent
ca90336a69
commit
f8826d31cd
2 changed files with 7 additions and 2 deletions
1
changelog.d/5077.bugfix
Normal file
1
changelog.d/5077.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Don't crash on lack of expiry templates.
|
|
@ -71,8 +71,12 @@ class EmailConfig(Config):
|
||||||
self.email_notif_from = email_config["notif_from"]
|
self.email_notif_from = email_config["notif_from"]
|
||||||
self.email_notif_template_html = email_config["notif_template_html"]
|
self.email_notif_template_html = email_config["notif_template_html"]
|
||||||
self.email_notif_template_text = email_config["notif_template_text"]
|
self.email_notif_template_text = email_config["notif_template_text"]
|
||||||
self.email_expiry_template_html = email_config["expiry_template_html"]
|
self.email_expiry_template_html = email_config.get(
|
||||||
self.email_expiry_template_text = email_config["expiry_template_text"]
|
"expiry_template_html", "notice_expiry.html",
|
||||||
|
)
|
||||||
|
self.email_expiry_template_text = email_config.get(
|
||||||
|
"expiry_template_text", "notice_expiry.txt",
|
||||||
|
)
|
||||||
|
|
||||||
template_dir = email_config.get("template_dir")
|
template_dir = email_config.get("template_dir")
|
||||||
# we need an absolute path, because we change directory after starting (and
|
# we need an absolute path, because we change directory after starting (and
|
||||||
|
|
Loading…
Reference in a new issue