mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Attempt to remove domain silently on creation error
This commit is contained in:
parent
b932844459
commit
26613198aa
1 changed files with 3 additions and 2 deletions
|
@ -237,8 +237,9 @@ def domain_add(auth, domain, main=False, dyndns=False):
|
|||
|
||||
os.system('yunohost app ssowatconf > /dev/null 2>&1')
|
||||
except:
|
||||
# Force domain removal
|
||||
domain_remove(auth, domain, True)
|
||||
# Force domain removal silently
|
||||
try: domain_remove(auth, domain, True)
|
||||
except: pass
|
||||
raise
|
||||
|
||||
msignals.display(m18n.n('domain_created'), 'success')
|
||||
|
|
Loading…
Add table
Reference in a new issue