public
Created

  • Download Gist
gistfile1.py
Python
1 2 3 4 5 6 7
from rest_framework import exceptions
 
...
try
data = request.DATA
except exceptions.ParseError
data = '[Invalid data in request]'

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.