Skip to content

Commit

Permalink
Remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
seanthegeek committed Jan 7, 2025
1 parent 1efbc87 commit 54d5ed3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions parsedmarc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down
6 changes: 3 additions & 3 deletions parsedmarc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from multiprocessing import Pipe, Process
import sys
from tqdm import tqdm
from expiringdict import ExpiringDict

from parsedmarc import (
get_dmarc_reports_from_mailbox,
Expand Down Expand Up @@ -1425,8 +1424,9 @@ def process_reports(reports_):
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":
Expand Down

0 comments on commit 54d5ed3

Please sign in to comment.