some more fixes

This commit is contained in:
2021-10-04 13:18:53 +02:00
parent 32bebf873d
commit 251f15a1d9
3 changed files with 5 additions and 3 deletions

View File

@@ -266,7 +266,7 @@ class EMailNotification(BaseNotification):
variables["ENVELOPE_TO_URL"] = escape(quote(recipient))
for field in ["from", "to", "subject"]:
value = msg[field]
if not value:
if value is None:
continue
variables[field.upper()] = escape(value, quote=False)