[mod] we don't use timestamp variable

This commit is contained in:
Laurent Peuch 2016-05-13 03:55:27 +02:00
parent a64843fef5
commit 44986e08e4

View file

@ -80,8 +80,6 @@ def domain_add(auth, domain, dyndns=False):
from yunohost.hook import hook_callback
attr_dict = { 'objectClass' : ['mailDomain', 'top'] }
now = datetime.datetime.now()
timestamp = str(now.year) + str(now.month) + str(now.day)
if domain in domain_list(auth)['domains']:
raise MoulinetteError(errno.EEXIST, m18n.n('domain_exists'))