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