From: Bob Halley Date: Mon, 29 Jun 2020 14:07:00 +0000 (-0700) Subject: opcode is a function not an attribute X-Git-Tag: v2.0.0rc2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abedf378928ed8aff3c6fb7790269460e356ddf4;p=thirdparty%2Fdnspython.git opcode is a function not an attribute --- diff --git a/dns/message.py b/dns/message.py index cc1de46f..597b329f 100644 --- a/dns/message.py +++ b/dns/message.py @@ -1317,7 +1317,7 @@ def make_response(query, recursion_available=False, our_payload=8192, if query.flags & dns.flags.QR: raise dns.exception.FormError('specified query message is not a query') - factory = _message_factory_from_opcode(query.opcode) + factory = _message_factory_from_opcode(query.opcode()) response = factory(id=query.id) response.flags = dns.flags.QR | (query.flags & dns.flags.RD) if recursion_available: