webhooks: Remove repetitive argument to UnsupportedWebhookEventType.

The name of the webhook can be added by the webhook decorator.
This commit is contained in:
Alex Vandiver
2020-08-19 15:50:06 -07:00
committed by Tim Abbott
parent e2ab7b9e17
commit d04db7c5fe
30 changed files with 55 additions and 53 deletions

View File

@@ -79,7 +79,7 @@ def get_event_handler(event: str) -> Callable[..., str]:
# The main reason for this function existence is because of mypy
handler: Any = EVENTS_FUNCTION_MAPPER.get(event)
if handler is None:
raise UnsupportedWebhookEventType("Groove", event)
raise UnsupportedWebhookEventType(event)
return handler
@webhook_view('Groove')