]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
opcode is a function not an attribute
authorBob Halley <halley@play-bow.org>
Mon, 29 Jun 2020 14:07:00 +0000 (07:07 -0700)
committerBob Halley <halley@play-bow.org>
Mon, 29 Jun 2020 14:07:00 +0000 (07:07 -0700)
dns/message.py

index cc1de46fda21a3223d8d11c588ceefcf17b5455b..597b329f9538933f70a3b0b530ac522125b54a09 100644 (file)
@@ -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: