]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
in inet_aton(), raise dns.exception.SyntaxError, like our contract says
authorBob Halley <halley@dnspython.org>
Wed, 6 Feb 2008 08:59:13 +0000 (08:59 +0000)
committerBob Halley <halley@dnspython.org>
Wed, 6 Feb 2008 08:59:13 +0000 (08:59 +0000)
ChangeLog
dns/ipv6.py

index 27a54ee5a587f63a095171e995b60920232a2147..80911656f6a3f82de04f83d78607aed0399cb935 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-02-06  Bob Halley  <halley@dnspython.org>
+
+       * dns/ipv6.py (inet_aton):  We could raise an exception other than
+         dns.exception.SyntaxError in some cases.
+
+       * dns/tsig.py: Raise an exception when the peer has set a non-zero
+         TSIG error.
+
 2007-11-25  Bob Halley  <halley@dnspython.org
 
        * (Version 1.6.0 released)
index 50780b6a6448445bcaaee3b95fec847b5c984aed..76540d91581780584be9024c611fb1aec7fe630d 100644 (file)
@@ -157,4 +157,7 @@ def inet_aton(text):
     #
     # Finally we can go to binary.
     #
-    return text.decode('hex_codec')
+    try:
+        return text.decode('hex_codec')
+    except TypeError:
+        raise dns.exception.SyntaxError