From 24cd9546712196b3a71f921222e804e903dff05a Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 28 Dec 2015 13:58:10 +0100 Subject: [PATCH] fix #223 --- nsupdate/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsupdate/api/views.py b/nsupdate/api/views.py index 6e5760e..3bd49b6 100644 --- a/nsupdate/api/views.py +++ b/nsupdate/api/views.py @@ -405,7 +405,7 @@ def _on_update_success(host, fqdn, kind, ipaddr, secure, logger): ifid = IPAddress(ifid) network = IPNetwork("%s/%d" % (ipaddr, netmask)) rh_ipaddr = str(IPAddress(network.network) + int(ifid)) - except (IndexError, AddrFormatError) as e: + except (IndexError, AddrFormatError, ValueError) as e: logger.warning("trouble computing address of related host %s [%s]" % (rh, e)) else: if not _delete: