summaryrefslogtreecommitdiff
path: root/trunk/ipaddr.py
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/ipaddr.py')
-rw-r--r--trunk/ipaddr.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/trunk/ipaddr.py b/trunk/ipaddr.py
index 1d25e55..7b94cd8 100644
--- a/trunk/ipaddr.py
+++ b/trunk/ipaddr.py
@@ -1761,6 +1761,9 @@ class IPv6Address(_BaseV6, _BaseIP):
if not addr_str:
raise AddressValueError('')
+ if not self._is_valid_ip(addr_str):
+ raise AddressValueError(addr_str)
+
self._ip = self._ip_int_from_string(addr_str)