From 3ac5f58a107c4e442d0de978d17fe88b7fb608b7 Mon Sep 17 00:00:00 2001 From: Lennart Friberg Date: Sat, 2 Sep 2023 10:35:11 +0200 Subject: [PATCH] Update splunk.py Added changed from #427 to pass tests --- parsedmarc/splunk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parsedmarc/splunk.py b/parsedmarc/splunk.py index 0d119661..36285238 100644 --- a/parsedmarc/splunk.py +++ b/parsedmarc/splunk.py @@ -64,7 +64,7 @@ def save_aggregate_reports_to_splunk(self, aggregate_reports): """ logger.debug("Saving aggregate reports to Splunk") - if type(aggregate_reports) == dict: + if isinstance(aggregate_reports, dict): aggregate_reports = [aggregate_reports] if len(aggregate_reports) < 1: @@ -130,7 +130,7 @@ def save_forensic_reports_to_splunk(self, forensic_reports): to save in Splunk """ logger.debug("Saving forensic reports to Splunk") - if type(forensic_reports) == dict: + if isinstance(forensic_reports, dict): forensic_reports = [forensic_reports] if len(forensic_reports) < 1: