From 30bc046e1a7acf1540bf83e2eef4a059d1ab7f35 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 13 May 2016 03:56:54 +0200 Subject: [PATCH] [mod] put import at top of the file --- src/yunohost/domain.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/yunohost/domain.py b/src/yunohost/domain.py index 56102fc12..61e3ff619 100644 --- a/src/yunohost/domain.py +++ b/src/yunohost/domain.py @@ -29,6 +29,8 @@ import yaml import errno from urllib import urlopen +import requests + from moulinette.core import MoulinetteError @@ -87,7 +89,6 @@ def domain_add(auth, domain, dyndns=False): if dyndns: if len(domain.split('.')) < 3: raise MoulinetteError(errno.EINVAL, m18n.n('domain_dyndns_invalid')) - import requests from yunohost.dyndns import dyndns_subscribe try: