DNS exception when verifying DKIM signature
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dkimpy |
Fix Released
|
Medium
|
Scott Kitterman |
Bug Description
I updated to version 1.1.3. I have dnspython==2.3.0 installed.
I load a message from file and then call dkim.verify(). This initially fails due to SERVFAIL.
dns.resolver.
However, the bug appears to be:
Traceback (most recent call last):
File "<APP_PATH>
print(
File "<PYTHON_
return d.verify(
File "<PYTHON_
return self.verify_
File "<PYTHON_
except dns.exception.
NameError: name 'dns' is not defined
In this commit some exception handling for timeouts is added: https:/
However, __init__.py does not import dns, therefore I'm not sure how this is supposed to work.
Perhaps the error handling should be here: https:/
Or perhaps there is something unique about my environment which is causing this to fail.
Add some additional error handling. Note this masks the second exception reported in this ticket by swallowing the first exception earlier.
There is likely still a bug in __init__.py when trying to catch exceptions in the dns.* namespace.