From 7c17427074875aabc76f7b762b5d9e0ffdae6497 Mon Sep 17 00:00:00 2001 From: Cliff Hill Date: Wed, 30 Oct 2024 11:48:13 -0400 Subject: [PATCH] Black Signed-off-by: Cliff Hill --- notifications_utils/logging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/notifications_utils/logging.py b/notifications_utils/logging.py index f225cdecf..0a13555d4 100644 --- a/notifications_utils/logging.py +++ b/notifications_utils/logging.py @@ -21,6 +21,7 @@ _phone_regex = re.compile("(?:\\+ *)?\\d[\\d\\- ]{7,}\\d") _email_regex = re.compile(r"[\w\.-]+@[\w\.-]+") # ['alice@google.com', 'bob@abc.com'] + def _scrub(msg: Any) -> Any: # Sometimes just an exception object is passed in for the message, skip those. if not isinstance(msg, str):