]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
pass the response to NoAnswer correctly
authorBob Halley <halley@play-bow.org>
Sun, 21 Feb 2016 23:50:11 +0000 (15:50 -0800)
committerBob Halley <halley@play-bow.org>
Sun, 21 Feb 2016 23:50:11 +0000 (15:50 -0800)
dns/resolver.py

index fabce29c6765affc9ed7c45a2f312305c46b5919..f2c1f9e6ce639261afc24c5a8e0a3b4eeecdf999 100644 (file)
@@ -174,7 +174,7 @@ class Answer(object):
                         continue
                     except KeyError:
                         if raise_on_no_answer:
-                            raise NoAnswer(question=response.question)
+                            raise NoAnswer(response=response)
                 if raise_on_no_answer:
                     raise NoAnswer(response=response)
         if rrset is None and raise_on_no_answer: