Dyndns bugfix

This commit is contained in:
Alexis Gavoty 2013-11-22 16:15:48 +01:00
parent cddfc94666
commit 1bb3e49f2d

View file

@ -136,6 +136,7 @@ def dyndns_update(dyn_host="dynhost.yunohost.org", domain=None, key=None, ip=Non
with open('/etc/yunohost/dyndns/old_ip', 'w') as f:
f.write(new_ip)
else:
os.remove('/etc/yunohost/dyndns/old_ip')
raise YunoHostError(1, _("An error occured during DynDNS update"))