mypy: fix unexpected None value in DNSReplyRaw

parent 84899793
Pipeline #44221 passed with stage
in 1 minute and 18 seconds
......@@ -209,6 +209,8 @@ class DNSReplyRaw(DNSBlob):
assert wire is not None
self.wire = wire
if copy_id:
if query is None:
raise ValueError("query must be provided to adjust copy_id")
self.adjust_reply(query, copy_id)
def adjust_reply(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment