From e91f3797a558e84ecfc85c171d58ccfaf664eba4 Mon Sep 17 00:00:00 2001 From: Jocelyn Delande Date: Sun, 27 Sep 2015 01:14:42 +0200 Subject: [PATCH] [fix] fix UnboundLocalError on ConnectionError While connecting to ip6.yunohost.org, new_ip6 was not populated if exception. --- lib/yunohost/dyndns.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/yunohost/dyndns.py b/lib/yunohost/dyndns.py index 4504aaefb..67b3db808 100644 --- a/lib/yunohost/dyndns.py +++ b/lib/yunohost/dyndns.py @@ -118,6 +118,7 @@ def dyndns_update(dyn_host="dynhost.yunohost.org", domain=None, key=None, ip=Non # IPv6 if ipv6 is None: + new_ipv6 = None try: new_ipv6 = requests.get('http://ip6.yunohost.org').text except ConnectionError: