mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] we need timeout everywhere to avoid blocking code
This commit is contained in:
parent
4c069c5c3f
commit
3f65543dc2
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ def domain_add(auth, domain, dyndns=False):
|
|||
from yunohost.dyndns import dyndns_subscribe
|
||||
|
||||
try:
|
||||
r = requests.get('https://dyndns.yunohost.org/domains')
|
||||
r = requests.get('https://dyndns.yunohost.org/domains', timeout=30)
|
||||
except requests.ConnectionError as e:
|
||||
raise MoulinetteError(errno.EHOSTUNREACH,
|
||||
m18n.n('domain_dyndns_dynette_is_unreachable', error=str(e)))
|
||||
|
|
Loading…
Add table
Reference in a new issue