[mod] put import at top of the file

This commit is contained in:
Laurent Peuch 2016-05-13 03:56:54 +02:00
parent 739369a248
commit 30bc046e1a

View file

@ -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: