mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Typo
This commit is contained in:
parent
31ac4d72d4
commit
a4b5ec6f2d
2 changed files with 2 additions and 3 deletions
|
@ -52,7 +52,7 @@ def dyndns_subscribe(subscribe_host="dyndns.yunohost.org", domain=None, key=None
|
|||
try:
|
||||
if requests.get('http://%s/test/%s' % (subscribe_host, domain)).status_code != 200:
|
||||
raise MoulinetteError(errno.EEXIST, m18n.n('dyndns_unavailable'))
|
||||
except ConnectionError:
|
||||
except requests.ConnectionError:
|
||||
raise MoulinetteError(errno.ENETUNREACH, m18n.n('no_internet_connection'))
|
||||
|
||||
if key is None:
|
||||
|
|
3
tools.py
3
tools.py
|
@ -191,8 +191,7 @@ def tools_maindomain(auth, old_domain=None, new_domain=None, dyndns=False):
|
|||
raise MoulinetteError(errno.EPERM,
|
||||
m18n.n('maindomain_change_failed'))
|
||||
|
||||
if dyndns: dyndns_subscribe(domain=new_domain)
|
||||
elif len(new_domain.split('.')) >= 3:
|
||||
if dyndns and len(new_domain.split('.')) >= 3:
|
||||
try:
|
||||
r = requests.get('http://dyndns.yunohost.org/domains')
|
||||
except ConnectionError:
|
||||
|
|
Loading…
Add table
Reference in a new issue