Skip to content

Commit ce6d82b

Browse files
committed
5.2.19
- Make warning text consistent
1 parent 673c8db commit ce6d82b

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 5.2.19
4+
5+
- Make warning text consistent
6+
37
## 5.2.18
48

59
- Fix void `a` SPF mechanism lookup output

checkdmarc/_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
See the License for the specific language governing permissions and
2020
limitations under the License."""
2121

22-
__version__ = "5.12.18"
22+
__version__ = "5.12.19"
2323

2424
OS = platform.system()
2525
OS_RELEASE = platform.release()

checkdmarc/spf.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ class _SPFDuplicateInclude(_SPFWarning):
7777
class SPFRecordNotFound(SPFError):
7878
"""Raised when an SPF record could not be found"""
7979

80-
def __init__(self, error, domain):
81-
if isinstance(error, dns.exception.Timeout):
82-
error.kwargs["timeout"] = round(error.kwargs["timeout"], 1)
83-
self.error = error
84-
self.domain = domain
85-
86-
def __str__(self):
87-
return f"{self.domain}: {str(self.error)}"
88-
8980

9081
class MultipleSPFRTXTRecords(SPFError):
9182
"""Raised when multiple TXT spf1 records are found"""

tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def testSPFMissingMXRecord(self):
282282
domain = "seanthegeek.net"
283283
results = checkdmarc.spf.parse_spf_record(spf_record, domain)
284284
self.assertIn(
285-
"An mx mechanism points to {0}, but that domain/subdomain does not have any MX records.".format(
285+
"{0}: An mx mechanism points to {0}, but that domain/subdomain does not have any MX records.".format(
286286
domain
287287
),
288288
results["warnings"],

0 commit comments

Comments
 (0)