From 21f519295c3e8cf928bb0067f6a3e2f315e6639a Mon Sep 17 00:00:00 2001 From: Christinarlong Date: Fri, 4 Oct 2024 15:17:23 -0700 Subject: [PATCH] more typing --- src/sentry/sentry_apps/tasks/sentry_apps.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sentry/sentry_apps/tasks/sentry_apps.py b/src/sentry/sentry_apps/tasks/sentry_apps.py index e86cd4373a2429..ffb0b1d4b2a8a5 100644 --- a/src/sentry/sentry_apps/tasks/sentry_apps.py +++ b/src/sentry/sentry_apps/tasks/sentry_apps.py @@ -446,7 +446,7 @@ def notify_sentry_app(event: Event | GroupEvent, futures): ) -def send_webhooks(installation: RpcSentryAppInstallation, event: str, **kwargs: Any): +def send_webhooks(installation: RpcSentryAppInstallation, event: str, **kwargs: Any) -> None: servicehook: ServiceHook try: servicehook = ServiceHook.objects.get( @@ -457,10 +457,10 @@ def send_webhooks(installation: RpcSentryAppInstallation, event: str, **kwargs: "send_webhooks.missing_servicehook", extra={"installation_id": installation.id, "event": event}, ) - return + return None if event not in servicehook.events: - return + return None # The service hook applies to all projects if there are no # ServiceHookProject records. Otherwise we want check if