mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Add a clue in solving issue with wrapping wrapped commands
This commit is contained in:
parent
26c2e56905
commit
32b21cbc18
@ -929,6 +929,8 @@ def wrap(f, specList=[], name=None, **kw):
|
|||||||
code = f.func_code
|
code = f.func_code
|
||||||
funcArgs = inspect.getargs(code)[0][len(self.commandArgs):]
|
funcArgs = inspect.getargs(code)[0][len(self.commandArgs):]
|
||||||
self.log.error('Extra args: %s', funcArgs)
|
self.log.error('Extra args: %s', funcArgs)
|
||||||
|
self.log.debug('Make sure you did not wrap a wrapped '
|
||||||
|
'function ;)')
|
||||||
raise
|
raise
|
||||||
return utils.python.changeFunctionName(newf, name, f.__doc__)
|
return utils.python.changeFunctionName(newf, name, f.__doc__)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user