From 138db268fe44bec4c7acbb9151ada744227b6c04 Mon Sep 17 00:00:00 2001 From: Sean Whalen <44679+seanthegeek@users.noreply.github.com> Date: Thu, 7 Sep 2023 18:19:57 -0400 Subject: [PATCH] Style fixes --- checkdmarc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checkdmarc.py b/checkdmarc.py index ce1cde2..bb67167 100644 --- a/checkdmarc.py +++ b/checkdmarc.py @@ -1305,7 +1305,7 @@ def parse_dmarc_record(record, domain, parked=False, resolver (dns.resolver.Resolver): A resolver object to use for DNS requests timeout (float): number of seconds to wait for an answer from DNS - syntax_error_marker (str): The maker for + syntax_error_marker (str): The maker for pointing out syntax errors Returns: OrderedDict: An ``OrderedDict`` with the following keys: @@ -1347,7 +1347,7 @@ def parse_dmarc_record(record, domain, parked=False, if not parsed_record.is_valid: expecting = list( map(lambda x: str(x).strip('"'), list(parsed_record.expecting))) - marked_record = (record[:parsed_record.pos] + syntax_error_marker + + marked_record = (record[:parsed_record.pos] + syntax_error_marker + record[parsed_record.pos:]) raise DMARCSyntaxError("Error: Expected {0} at position {1} " "(marked with {2}) in: "