Browse Source

py2 fix

pull/114/merge
Pēteris Caune 8 years ago
parent
commit
597d79abae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hc/front/views.py

+ 1
- 1
hc/front/views.py View File

@ -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()


Loading…
Cancel
Save