def batch_cmd_exec(caller):
 ptr = caller.ndb.batch_stackptr
 stack = caller.ndb.batch_stack
 command = stack[ptr]
 caller.msg(format_header(caller, command))
 try:
  caller.execute_cmd(command)
 except Exception:
  logger.log_trace()
  return False
 return True

def batch_cmd_exec ( caller ) : ptr = caller . ndb . batch_stackptr stack = caller . ndb . batch_stack command = stack [ ptr ] caller . msg ( format_header ( caller , command ) ) try : caller . execute_cmd ( command ) except Exception : logger . log_trace ( ) return False return True
helper function for executing a single batch-command entry .