We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6298bc4 commit 0f5b840Copy full SHA for 0f5b840
checkdmarc/spf.py
@@ -505,8 +505,8 @@ def parse_spf_record(
505
dns_lookups=total_dns_lookups,
506
)
507
508
- except DNSException as error:
509
- if isinstance(error, DNSExceptionNXDOMAIN):
+ except DNSException as dnserror:
+ if isinstance(dnserror, DNSExceptionNXDOMAIN):
510
mechanism_void_dns_lookups += 1
511
total_void_dns_lookups += 1
512
if total_void_dns_lookups > 2:
@@ -516,7 +516,7 @@ def parse_spf_record(
516
"(RFC 7208 § 4.6.4)",
517
void_dns_lookups=total_void_dns_lookups,
518
519
- raise _SPFWarning(str(error))
+ raise _SPFWarning(str(dnserror))
520
pairs = [
521
("action", action),
522
("mechanism", mechanism),
0 commit comments