mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
webhooks: Remove repetitive argument to UnsupportedWebhookEventType.
The name of the webhook can be added by the webhook decorator.
This commit is contained in:
committed by
Tim Abbott
parent
e2ab7b9e17
commit
d04db7c5fe
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user