[fix] Do not put 'None' in the zone file

This commit is contained in:
Alexis Gavoty 2014-06-06 11:50:33 +02:00
parent b57d861cbe
commit 3a12a3eb2f

View file

@ -145,6 +145,9 @@ def dyndns_update(dyn_host="dynhost.yunohost.org", domain=None, key=None, ip=Non
f.write(new_ipv6)
break
except IOError:
pass
if new_ipv6 is None:
new_ipv6 = '0000:0000:0000:0000:0000:0000:0000:0000'
if old_ip != new_ip or old_ipv6 != new_ipv6 and new_ipv6 is not None: