From 64d6ea6d530e207a240b008a4ab010107141d3cc Mon Sep 17 00:00:00 2001 From: Lennart Friberg Date: Sat, 2 Sep 2023 10:32:12 +0200 Subject: [PATCH] Update cli.py Added changed from PR #427 --- parsedmarc/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsedmarc/cli.py b/parsedmarc/cli.py index c76a2d7b..2a2a099f 100644 --- a/parsedmarc/cli.py +++ b/parsedmarc/cli.py @@ -919,7 +919,7 @@ def process_reports(reports_): pool.join() for result in results: - if type(result[0]) is InvalidDMARCReport: + if isinstance(result[0], InvalidDMARCReport): logger.error("Failed to parse {0} - {1}".format(result[1], result[0])) else: