From 65c18dcaa1ed3bdab154184d272ab8e3024c04e1 Mon Sep 17 00:00:00 2001 From: ljf Date: Tue, 5 Jun 2018 11:21:21 +0200 Subject: [PATCH] [fix] Internal call with uo args --- src/yunohost/log.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yunohost/log.py b/src/yunohost/log.py index 6bf24eb9d..d09a943cf 100644 --- a/src/yunohost/log.py +++ b/src/yunohost/log.py @@ -215,6 +215,7 @@ def is_unit_operation(entities='app,domain,service,user', exclude='auth,password if len(args) > 0: from inspect import getargspec keys = getargspec(func).args + keys.remove('uo') for k, arg in enumerate(args): kwargs[keys[k]] = arg args = () @@ -250,6 +251,7 @@ 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 else: uo.success()