Remove unused import

This commit is contained in:
Sean Whalen
2025-01-07 12:57:41 -05:00
parent 1efbc87e0e
commit 54d5ed3543
2 changed files with 7 additions and 5 deletions

View File

@@ -1476,8 +1476,10 @@ def get_dmarc_reports_from_mbox(
SEEN_AGGREGATE_REPORT_IDS[report_id] = report_id
aggregate_reports.append(parsed_email["report"])
else:
logger.debug("Skipping duplicate aggregate report "
f"with ID: {report_id}")
logger.debug(
"Skipping duplicate aggregate report "
f"with ID: {report_id}"
)
aggregate_reports.append(parsed_email["report"])
elif parsed_email["report_type"] == "forensic":
forensic_reports.append(parsed_email["report"])

View File

@@ -15,7 +15,6 @@ from ssl import CERT_NONE, create_default_context
from multiprocessing import Pipe, Process
import sys
from tqdm import tqdm
from expiringdict import ExpiringDict
from parsedmarc import (
get_dmarc_reports_from_mailbox,
@@ -1425,8 +1424,9 @@ def _main():
SEEN_AGGREGATE_REPORT_IDS[report_id] = report_id
aggregate_reports.append(result[0]["report"])
else:
logger.debug("Skipping duplicate aggregate report "
f"with ID: {report_id}")
logger.debug(
"Skipping duplicate aggregate report " f"with ID: {report_id}"
)
elif result[0]["report_type"] == "forensic":
forensic_reports.append(result[0]["report"])
elif result[0]["report_type"] == "smtp_tls":