From e7d0166098469a5a73c0a3633dcdcbabae88ae19 Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Sat, 11 Mar 2023 15:40:38 +0100
Subject: [PATCH] =?UTF-8?q?send=5Finternal=5Ferror=5Femail=20nic=20nevrac?=
=?UTF-8?q?=C3=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mo/email.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mo/email.py b/mo/email.py
index 0c8ea964..174e0542 100644
--- a/mo/email.py
+++ b/mo/email.py
@@ -196,7 +196,7 @@ error_tbf = token_bucket.Limiter(rate=1/300, capacity=10, storage=token_bucket.M
errors_supressed = 0
-def send_internal_error_email(place: str, attrs: Mapping[str, Optional[str]], exc_info: ExceptionInfo):
+def send_internal_error_email(place: str, attrs: Mapping[str, Optional[str]], exc_info: ExceptionInfo) -> None:
errors_to = getattr(config, 'MAIL_ERRORS_TO', None)
if errors_to is None:
return
--
GitLab