From 312429d92a0da466691645b61d4fbe9419750aae Mon Sep 17 00:00:00 2001 From: ljf Date: Tue, 5 Jun 2018 11:25:37 +0200 Subject: [PATCH] [fix] Reraise correctly the error --- src/yunohost/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yunohost/log.py b/src/yunohost/log.py index d09a943cf..d55bf963d 100644 --- a/src/yunohost/log.py +++ b/src/yunohost/log.py @@ -251,8 +251,8 @@ def is_unit_operation(entities='app,domain,service,user', exclude='auth,password result = func(*args, **kwargs) except Exception as e: uo.error(e) - import pdb;pdb.set_trace() - raise e + t, v, tb = exc_info() + raise t, v, tb else: uo.success() return result