From e5215830b014ff6663af0e45e845912d15b896a1 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sat, 8 Apr 2017 10:50:51 +0200 Subject: [PATCH] catch anything here --- src/shop/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shop/views.py b/src/shop/views.py index 67ac9978..5dd771a2 100644 --- a/src/shop/views.py +++ b/src/shop/views.py @@ -601,10 +601,10 @@ class CoinifyCallbackView(SingleObjectMixin, View): if key[:5] == 'HTTP_': headerdict[key[5:]] = value - # parse json + # attempt to parse json try: parsed = json.loads(str(request.body)) - except JSONDecodeError: + except Exception as E: parsed = None # save callback to db