diff --git a/shiftregister/messaging/views.py b/shiftregister/messaging/views.py index 22f5e3e..ffe6de8 100644 --- a/shiftregister/messaging/views.py +++ b/shiftregister/messaging/views.py @@ -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)