[mod] the ip variable is unused

This commit is contained in:
Laurent Peuch 2016-05-13 03:55:14 +02:00
parent f42c94ed94
commit a64843fef5

View file

@ -80,10 +80,6 @@ def domain_add(auth, domain, dyndns=False):
from yunohost.hook import hook_callback
attr_dict = { 'objectClass' : ['mailDomain', 'top'] }
try:
ip = str(urlopen('http://ip.yunohost.org').read())
except IOError:
ip = "127.0.0.1"
now = datetime.datetime.now()
timestamp = str(now.year) + str(now.month) + str(now.day)