diff --git a/docs/project.rst b/docs/project.rst index 036c44d..0a96e03 100644 --- a/docs/project.rst +++ b/docs/project.rst @@ -27,6 +27,14 @@ Translations are done on Transifex - please collaborate there to avoid double wo https://www.transifex.com/projects/p/nsupdateinfo/ +You need the transifex-client package so you have the tx command: + +:: + + # currently only works on python 2.x, transifex-client github repo has 3.3 support + pip install transifex-client + + Please make sure to configure your notification settings so that you are notified when the translation project is updated (so you can react quickly and keep your translation fresh). diff --git a/nsupdate/api/views.py b/nsupdate/api/views.py index 07aef32..484b393 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): network = IPNetwork("%s/%d" % (ipaddr, netmask)) rh_ipaddr = str(IPAddress(network.network) + int(ifid)) rh_fqdn = FQDN(rh.name + '.' + fqdn.host, fqdn.domain) - except AddrFormatError as e: + except (IndexError, AddrFormatError) as e: logger.warning("trouble computing address of related host %s [%s]" % (rh, e)) else: logger.info("updating related host %s -> %s" % (rh_fqdn, rh_ipaddr)) diff --git a/requirements.d/dev.txt b/requirements.d/dev.txt index fac85d7..30e958c 100644 --- a/requirements.d/dev.txt +++ b/requirements.d/dev.txt @@ -5,4 +5,3 @@ pytest pytest-django pytest-pep8 Sphinx -transifex-client