summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpmoody@google.com <pmoody@google.com@09200d28-7f98-11dd-ad27-0f66e57d2035>2010-02-22 16:03:53 +0000
committerpmoody@google.com <pmoody@google.com@09200d28-7f98-11dd-ad27-0f66e57d2035>2010-02-22 16:03:53 +0000
commit3c3b389dc937ad91131b0acc0456ef2b5dbf7cfb (patch)
tree6f2ac26b37175fcc8da8f99ff13c589e1e0d1025
parent272282d549cc29ccdfb4d35a8161dfcb653e225f (diff)
downloadipaddr-py-3c3b389dc937ad91131b0acc0456ef2b5dbf7cfb.tar.gz
+ kill the few more remaining instances of the old exception names,
both in the code and the docstrings. git-svn-id: https://ipaddr-py.googlecode.com/svn@147 09200d28-7f98-11dd-ad27-0f66e57d2035
-rw-r--r--trunk/ipaddr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/trunk/ipaddr.py b/trunk/ipaddr.py
index a5d2309..892b246 100644
--- a/trunk/ipaddr.py
+++ b/trunk/ipaddr.py
@@ -1685,7 +1685,7 @@ class _BaseV6(object):
return None
try:
return IPv4Address(int('%s%s' % (hextets[-2], hextets[-1]), 16))
- except IPv4IpvalidationError:
+ except AddressValueError:
return None
@@ -1708,7 +1708,7 @@ class IPv6Address(_BaseV6, _BaseIP):
IPv6Address('2001:4860::')
Raises:
- IPv6IpValidationError: If address isn't a valid IPv6 address.
+ AddressValueError: If address isn't a valid IPv6 address.
"""
_BaseIP.__init__(self, address)