[fix] Indentation fail

This commit is contained in:
kload 2015-10-02 05:33:09 -04:00
parent 23e2e9c360
commit 4e0cbf7215

View file

@ -159,13 +159,13 @@ def domain_add(auth, domain, dyndns=False):
if not auth.add('virtualdomain=%s,ou=domains' % domain, attr_dict): if not auth.add('virtualdomain=%s,ou=domains' % domain, attr_dict):
raise MoulinetteError(errno.EIO, m18n.n('domain_creation_failed')) raise MoulinetteError(errno.EIO, m18n.n('domain_creation_failed'))
try: try:
with open('/etc/yunohost/installed', 'r') as f: with open('/etc/yunohost/installed', 'r') as f:
service_regenconf(service='nginx') service_regenconf(service='nginx')
service_regenconf(service='metronome') service_regenconf(service='metronome')
service_regenconf(service='dnsmasq') service_regenconf(service='dnsmasq')
os.system('yunohost app ssowatconf > /dev/null 2>&1') os.system('yunohost app ssowatconf > /dev/null 2>&1')
except IOError: pass except IOError: pass
except: except:
# Force domain removal silently # Force domain removal silently
try: domain_remove(auth, domain, True) try: domain_remove(auth, domain, True)