mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 22:49:23 +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
|
||||
funcArgs = inspect.getargs(code)[0][len(self.commandArgs):]
|
||||
self.log.error('Extra args: %s', funcArgs)
|
||||
self.log.debug('Make sure you did not wrap a wrapped '
|
||||
'function ;)')
|
||||
raise
|
||||
return utils.python.changeFunctionName(newf, name, f.__doc__)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user