mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] the ip variable is unused
This commit is contained in:
parent
f42c94ed94
commit
a64843fef5
1 changed files with 0 additions and 4 deletions
|
@ -80,10 +80,6 @@ def domain_add(auth, domain, dyndns=False):
|
||||||
from yunohost.hook import hook_callback
|
from yunohost.hook import hook_callback
|
||||||
|
|
||||||
attr_dict = { 'objectClass' : ['mailDomain', 'top'] }
|
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()
|
now = datetime.datetime.now()
|
||||||
timestamp = str(now.year) + str(now.month) + str(now.day)
|
timestamp = str(now.year) + str(now.month) + str(now.day)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue