def dispatch(self):
    try:
        result = self._call_function(**self.params)
    except Exception as exception:
        return self._handle_exception(exception)
    return self._json_response(result)
def dispatch(self):
    try:
        result = self._call_function(**self.params)
    except Exception as exception:
        return self._handle_exception(exception)
    return self._json_response(result)