From 9b81eb5e402e17cb937d239795b47ee9464c507a Mon Sep 17 00:00:00 2001 From: Phin Wolkwitz Date: Thu, 14 Apr 2022 16:29:21 +0200 Subject: [PATCH] Fix request parsing --- pretix_computop/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pretix_computop/views.py b/pretix_computop/views.py index 13eba78..0c67d96 100644 --- a/pretix_computop/views.py +++ b/pretix_computop/views.py @@ -61,7 +61,7 @@ class ReturnView(ComputopOrderView, View): viewsource = "return_view" def post(self, request, *args, **kwargs): - if request.POST["Data"]: + if request.POST.get("Data"): try: response = self.pprov.parse_data(request.POST.get("Data")) if self.pprov.check_hash(response): @@ -89,7 +89,7 @@ class NotifyView(ComputopOrderView, View): viewsource = "notify_view" def post(self, request, *args, **kwargs): - if request.POST["Data"]: + if request.POST.get("Data"): try: response = self.pprov.parse_data(request.POST.get("Data")) except PaymentException: