From a54f70d9f5d3e5ffe024582b573cf5124f7cb0a4 Mon Sep 17 00:00:00 2001 From: ljf Date: Tue, 5 Jun 2018 13:15:34 +0200 Subject: [PATCH] [fix] Display error correctly --- src/yunohost/domain.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/yunohost/domain.py b/src/yunohost/domain.py index 774ab928e..22b5a33ee 100644 --- a/src/yunohost/domain.py +++ b/src/yunohost/domain.py @@ -116,13 +116,16 @@ def domain_add(auth, domain, dyndns=False): service_regen_conf(names=['nginx', 'metronome', 'dnsmasq', 'rmilter']) app_ssowatconf(auth) - except: + except Exception, e: + from sys import exc_info; + t, v, tb = exc_info() + # Force domain removal silently try: domain_remove(auth, domain, True) except: pass - raise + raise t, v, tb hook_callback('post_domain_add', args=[domain])