def _error_execute(*args, **kargs):
 cmd = (args[1:(-3)] if (args[0] == 'raidcom') else args)
 result = _execute(*args, **kargs)
 ret = ERROR_EXECUTE_TABLE.get(cmd)
 return (ret if ret else result)

def _error_execute ( * args , ** kargs ) : cmd = ( args [ 1 : ( - 3 ) ] if ( args [ 0 ] == 'raidcom' ) else args ) result = _execute ( * args , ** kargs ) ret = ERROR_EXECUTE_TABLE . get ( cmd ) return ( ret if ret else result )
return predefined error results .