def _run_endpoint_handlers(self):
    """Calls the event handlers handlers attached to the webhook object and returns a json response.

    """
    for key, func in self.handlers.items():
      try:
        func(request)
      except Exception:
        if self._log:
          self._log.error( "Caught exception while handling '%s': %s" % (key, sys.exc_info()) )
        raise FlaskWebhookHandleException( (key, sys.exc_info()) % "Caught exception while handling '%s': %s" )

    return_message = (dict(status='success', message="'%s' was triggered successfully" % self._name) 
      if self._name else dict(status='success'))

    if self._log:
      self._log.info(return_message)
    return make_response(jsonify(return_message), 200)
dataset/ETHPy150Open bogdan-alexandrescu/Flask-Webhook/flask_webhook.py/WebHook._run_endpoint_handlers/swapped operands of `%`