From 15c01730b0b30b7af9248b5735af50c2fa3fde5e Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 3 Oct 2013 17:25:10 +0200 Subject: [PATCH] add dnspython issue URL and TODO --- nsupdate/api/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nsupdate/api/views.py b/nsupdate/api/views.py index 299d39e..3b34094 100644 --- a/nsupdate/api/views.py +++ b/nsupdate/api/views.py @@ -197,7 +197,9 @@ def AuthorizedNicUpdateView(request): def _update(hostname, ipaddr): - ipaddr = str(ipaddr) # XXX bug in dnspython: crashes if ipaddr is unicode, wants a str! + ipaddr = str(ipaddr) # bug in dnspython: crashes if ipaddr is unicode, wants a str! + # https://github.com/rthalley/dnspython/issues/41 + # TODO: reproduce and submit traceback to issue 41 hosts = Host.filter_by_fqdn(hostname) num_hosts = len(hosts) if num_hosts == 0: