File tree Expand file tree Collapse file tree 4 files changed +6
-11
lines changed
Expand file tree Collapse file tree 4 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1919See the License for the specific language governing permissions and
2020limitations under the License."""
2121
22- __version__ = "5.12.18 "
22+ __version__ = "5.12.19 "
2323
2424OS = platform .system ()
2525OS_RELEASE = platform .release ()
Original file line number Diff line number Diff line change @@ -77,15 +77,6 @@ class _SPFDuplicateInclude(_SPFWarning):
7777class 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
9081class MultipleSPFRTXTRecords (SPFError ):
9182 """Raised when multiple TXT spf1 records are found"""
Original file line number Diff line number Diff 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" ],
You can’t perform that action at this time.
0 commit comments