From 75da6d70271c980d5c93be0f3225ad554a0ef6ed Mon Sep 17 00:00:00 2001 From: Son Date: Fri, 25 Mar 2022 16:49:49 +0100 Subject: [PATCH] fix --- email_handler.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/email_handler.py b/email_handler.py index 7e0efb10..dc0f91a7 100644 --- a/email_handler.py +++ b/email_handler.py @@ -544,11 +544,7 @@ def apply_dmarc_policy( ) -> Optional[str]: dmarc_result = get_dmarc_status(msg) if dmarc_result: - newrelic.agent.record_custom_event( - newrelic.agent.record_custom_event( - "DmarcCheck", {"result": dmarc_result.name} - ) - ) + newrelic.agent.record_custom_event("DmarcCheck", {"result": dmarc_result.name}) else: newrelic.agent.record_custom_event("DmarcCheck", {"result": "N/A"})