When passing a signed message in as bytes to the function in Python 3:
Traceback (most recent call last):
File "./dmarctests.py", line 45, in <module>
print("VERIFY: ", dkim.verify(signedmsg))
File "/usr/lib/python3/dist-packages/dkim/__init__.py", line 630, in verify
return d.verify(dnsfunc=dnsfunc)
File "/usr/lib/python3/dist-packages/dkim/__init__.py", line 563, in verify
s = dnsfunc(name)
File "/usr/lib/python3/dist-packages/dkim/dnsplug.py", line 84, in get_txt
txt = txt.encode('utf-8')
AttributeError: 'bytes' object has no attribute 'encode'
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1716968
Title:
`dkimpy` in Python 3 does not work for 'verify' - AttributeError
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dkimpy/+bug/1716968/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs