mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Display error correctly
This commit is contained in:
parent
031ff99223
commit
a54f70d9f5
1 changed files with 5 additions and 2 deletions
|
@ -116,13 +116,16 @@ def domain_add(auth, domain, dyndns=False):
|
||||||
service_regen_conf(names=['nginx', 'metronome', 'dnsmasq', 'rmilter'])
|
service_regen_conf(names=['nginx', 'metronome', 'dnsmasq', 'rmilter'])
|
||||||
app_ssowatconf(auth)
|
app_ssowatconf(auth)
|
||||||
|
|
||||||
except:
|
except Exception, e:
|
||||||
|
from sys import exc_info;
|
||||||
|
t, v, tb = exc_info()
|
||||||
|
|
||||||
# Force domain removal silently
|
# Force domain removal silently
|
||||||
try:
|
try:
|
||||||
domain_remove(auth, domain, True)
|
domain_remove(auth, domain, True)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
raise
|
raise t, v, tb
|
||||||
|
|
||||||
hook_callback('post_domain_add', args=[domain])
|
hook_callback('post_domain_add', args=[domain])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue