From 59b7f0a03dd3630fa953e8e9568bb86d77d5948d Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 19 Sep 2019 10:36:33 +0200 Subject: [PATCH] Fix a new bug in Stripe webhooks PRETIXEU-64 --- src/pretix/plugins/stripe/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/stripe/views.py b/src/pretix/plugins/stripe/views.py index 168f4e32f..9174eb866 100644 --- a/src/pretix/plugins/stripe/views.py +++ b/src/pretix/plugins/stripe/views.py @@ -179,7 +179,7 @@ def webhook(request, *args, **kwargs): ) return func(rso.order.event, event_json, objid, rso) except ReferencedStripeObject.DoesNotExist: - pass + return HttpResponse("Unable to detect event", status=200) elif hasattr(request, 'event') and func != paymentintent_webhook: # This is a legacy integration from back when didn't have ReferencedStripeObject. This can't happen for # payment intents or charges connected with payment intents since they didn't exist back then. Our best