diff --git a/hc/front/views.py b/hc/front/views.py index 1b2a428f..61107246 100644 --- a/hc/front/views.py +++ b/hc/front/views.py @@ -761,7 +761,7 @@ def telegram_bot(request): try: doc = json.loads(request.body.decode("utf-8")) jsonschema.validate(doc, telegram_callback) - except json.decoder.JSONDecodeError: + except ValueError: return HttpResponseBadRequest() except jsonschema.ValidationError: return HttpResponseBadRequest()