[fix] ConnectionError is from requests

This commit is contained in:
Laurent Peuch 2016-05-13 03:56:23 +02:00
parent 6b781a99b6
commit 739369a248

View file

@ -92,7 +92,7 @@ def domain_add(auth, domain, dyndns=False):
try:
r = requests.get('https://dyndns.yunohost.org/domains')
except ConnectionError:
except requests.ConnectionError:
pass
else:
dyndomains = json.loads(r.text)