mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-03-26 16:32:48 +00:00
Debug output workaround
This commit is contained in:
@@ -26,6 +26,7 @@ import email.utils
|
||||
import smtplib
|
||||
from ssl import SSLError, CertificateError, create_default_context
|
||||
import time
|
||||
from pprint import PrettyPrinter
|
||||
|
||||
from expiringdict import ExpiringDict
|
||||
import xmltodict
|
||||
@@ -985,8 +986,7 @@ def get_dmarc_reports_from_inbox(host=None,
|
||||
try:
|
||||
raw_msg = server.fetch(message_uid,
|
||||
["RFC822"])
|
||||
logging.debug(json.dumps(raw_msg, indent=2,
|
||||
ensure_ascii=True))
|
||||
PrettyPrinter.pprint(raw_msg)
|
||||
raw_msg = raw_msg[message_uid][b"RFC822"]
|
||||
|
||||
except (ConnectionResetError, socket.error,
|
||||
|
||||
Reference in New Issue
Block a user