mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Internal call with uo args
This commit is contained in:
parent
5dbf7b567e
commit
65c18dcaa1
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue