Skip to content

Commit

Permalink
Update splunk.py
Browse files Browse the repository at this point in the history
Added changed from #427 to pass tests
  • Loading branch information
Kuzuto authored Sep 2, 2023
1 parent b86a002 commit 3ac5f58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parsedmarc/splunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3ac5f58

Please sign in to comment.