Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
email_log: Mark EmailLogBackEnd.log_email as a staticmethod.
Vishnu KS03879eec6d99
diff --git a/zproject/email_backends.py b/zproject/email_backends.pyindex be275163978..fc19ed412a7 100644--- a/zproject/email_backends.py+++ b/zproject/email_backends.py@@ -28,7 +28,8 @@ def set_forward_address(forward_address: str) -> None:config.write(cfgfile)class EmailLogBackEnd(EmailBackend):- def log_email(self, email: EmailMultiAlternatives) -> None:+ @staticmethod+ def log_email(email: EmailMultiAlternatives) -> None:"""Used in development to record sent emails in a nice HTML log"""html_message = 'Missing HTML message'if len(email.alternatives) > 0: