Add a clue in solving issue with wrapping wrapped commands

This commit is contained in:
Valentin Lorentz 2011-03-01 08:47:53 +01:00
parent 26c2e56905
commit 32b21cbc18

View File

@ -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__)