diff options
| author | Tom Christie | 2013-12-09 07:34:08 +0000 | 
|---|---|---|
| committer | Tom Christie | 2013-12-09 07:34:08 +0000 | 
| commit | 06d8a31e132c99a9645e26b5def3a1d9b9585c24 (patch) | |
| tree | 5836843af1e169a00a703a2b2dc271bcf990e6e8 /rest_framework/request.py | |
| parent | 774298f145d18292b76f2bd90469e25c1950b1af (diff) | |
| download | django-rest-framework-06d8a31e132c99a9645e26b5def3a1d9b9585c24.tar.bz2 | |
Catch and mask ParseErrors that occur during rendering of the BrowsableAPI.
Diffstat (limited to 'rest_framework/request.py')
| -rw-r--r-- | rest_framework/request.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/request.py b/rest_framework/request.py index 9b551aa8..fcea2508 100644 --- a/rest_framework/request.py +++ b/rest_framework/request.py @@ -362,7 +362,7 @@ class Request(object):              # If we get an exception during parsing, fill in empty data and              # re-raise.  Ensures we don't simply repeat the error when              # attempting to render the browsable renderer response, or when -            # logging the request or similar.  +            # logging the request or similar.              self._data = QueryDict('', self._request._encoding)              self._files = MultiValueDict()              raise | 
