Andrew Svetlov added the comment:
dns package is not a part of Python standard library.
Please file a bug in https://github.com/rthalley/dnspython/issues bugtracker.
P.S.
The fix is pretty straightforward:
if not fut.done():
fut.set_result(...)
--
resolution: -> third party
New submission from James Lawrie :
The datagram_received:
def datagram_received(self, data, addr):
if self.recvfrom:
self.recvfrom.set_result((data, addr))
self.recvfrom = None
Throws an exception if self.recvfrom is a Future Cancelled:
Exception in callback