From 4951658007ec1c2f9c14a0275f6d66a242708e44 Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Thu, 6 Aug 2026 22:42:47 +0000 Subject: [PATCH] fix(sentry-apps): Prevent MissingSchema with empty webhook_url --- src/sentry/utils/sentry_apps/webhooks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sentry/utils/sentry_apps/webhooks.py b/src/sentry/utils/sentry_apps/webhooks.py index b0740b45da46..53b55f15cc70 100644 --- a/src/sentry/utils/sentry_apps/webhooks.py +++ b/src/sentry/utils/sentry_apps/webhooks.py @@ -256,6 +256,8 @@ def send_and_save_webhook_request( org_id = app_platform_event.install.organization_id slug = sentry_app.slug_for_metrics url = url or sentry_app.webhook_url + if not url: + return Response() lifecycle.add_extras( { "org_id": org_id, @@ -266,7 +268,6 @@ def send_and_save_webhook_request( } ) - assert url is not None try: owner_context = organization_service.get_organization_by_id( id=sentry_app.owner_id,