diff options
Diffstat (limited to 'djangorestframework')
| -rw-r--r-- | djangorestframework/parsers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/parsers.py b/djangorestframework/parsers.py index 7481666b..a19582b7 100644 --- a/djangorestframework/parsers.py +++ b/djangorestframework/parsers.py @@ -167,10 +167,10 @@ class MultiPartParser(BaseParser): upload_handlers = self.view.request._get_upload_handlers() try: django_parser = DjangoMultiPartParser(self.view.request.META, stream, upload_handlers) + return django_parser.parse() except MultiPartParserError, exc: raise ErrorResponse(status.HTTP_400_BAD_REQUEST, {'detail': 'multipart parse error - %s' % unicode(exc)}) - return django_parser.parse() class XMLParser(BaseParser): |
