catch anything here
This commit is contained in:
parent
809e22311d
commit
e5215830b0
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue