mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
@@ -20,6 +20,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
_phone_regex = re.compile("(?:\\+ *)?\\d[\\d\\- ]{7,}\\d")
|
_phone_regex = re.compile("(?:\\+ *)?\\d[\\d\\- ]{7,}\\d")
|
||||||
|
|
||||||
|
|
||||||
def _scrub(msg: Any) -> Any:
|
def _scrub(msg: Any) -> Any:
|
||||||
# Sometimes just an exception object is passed in for the message, skip those.
|
# Sometimes just an exception object is passed in for the message, skip those.
|
||||||
if not isinstance(msg, str):
|
if not isinstance(msg, str):
|
||||||
|
|||||||
Reference in New Issue
Block a user