Merge pull request #232 from nsupdate-info/fix-223

fix #223
This commit is contained in:
TW 2015-12-28 15:34:39 +01:00
commit f6a847d27c

View File

@ -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: