fix(messaging): report missing params to webhook handler as HTTP 400
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
a931843b08
commit
6bc60e1c83
|
@ -49,7 +49,7 @@ def handle_inbound(request):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
incoming_message.send(receiver, messages=receiver.handle(**kwargs))
|
incoming_message.send(receiver, messages=receiver.handle(**kwargs))
|
||||||
except (IndexError, KeyError, ValueError) as e:
|
except (IndexError, KeyError, TypeError, ValueError) as e:
|
||||||
sentry_sdk.capture_exception(e)
|
sentry_sdk.capture_exception(e)
|
||||||
return HttpResponseBadRequest()
|
return HttpResponseBadRequest()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue