feat(messaging): also capture errors from 'handle' that result in HTTP 400
This commit is contained in:
parent
af59a6d393
commit
908c3d21cc
|
@ -47,7 +47,8 @@ def handle_inbound(request):
|
|||
|
||||
try:
|
||||
incoming_message.send(receiver, messages=receiver.handle(**kwargs))
|
||||
except (IndexError, KeyError, ValueError):
|
||||
except (IndexError, KeyError, ValueError) as e:
|
||||
sentry_sdk.capture_exception(e)
|
||||
return HttpResponseBadRequest()
|
||||
except Exception as e:
|
||||
sentry_sdk.capture_exception(e)
|
||||
|
|
Loading…
Reference in New Issue