aboutsummaryrefslogtreecommitdiffstats
path: root/test/hook.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/hook.py')
-rw-r--r--test/hook.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/hook.py b/test/hook.py
index 555fc2ea32a..ccc5c86b9c3 100644
--- a/test/hook.py
+++ b/test/hook.py
@@ -39,7 +39,7 @@ class Hook(object):
# we don't call test_type(val) because it is a packed value.
return '{!s} ({!s})'.format(val, str(
ipaddress.ip_address(val)))
- except ipaddress.AddressValueError:
+ except ValueError:
return val
_args = ', '.join("{!s}={!r}".format(key, _friendly_format(val)) for