diff --git a/django/http/request.py b/django/http/request.py
index a8eb14d..1221ade 100644
a
|
b
|
class HttpRequest(object):
|
183 | 183 | try: |
184 | 184 | self._body = self.read() |
185 | 185 | except IOError as e: |
186 | | six.reraise(UnreadablePostError, UnreadablePostError(*e.args), sys.exc_info()[2]) |
| 186 | six.reraise(UnreadablePostError, UnreadablePostError(*tuple(e.args)), sys.exc_info()[2]) |
187 | 187 | self._stream = BytesIO(self._body) |
188 | 188 | return self._body |
189 | 189 | |
… |
… |
class HttpRequest(object):
|
234 | 234 | |
235 | 235 | def read(self, *args, **kwargs): |
236 | 236 | self._read_started = True |
237 | | return self._stream.read(*args, **kwargs) |
| 237 | try: |
| 238 | return self._stream.read(*args, **kwargs) |
| 239 | except IOError as e: |
| 240 | six.reraise(UnreadablePostError, UnreadablePostError(*tuple(e.args)), sys.exc_info()[2]) |
238 | 241 | |
239 | 242 | def readline(self, *args, **kwargs): |
240 | 243 | self._read_started = True |
241 | | return self._stream.readline(*args, **kwargs) |
| 244 | try: |
| 245 | return self._stream.readline(*args, **kwargs) |
| 246 | except IOError as e: |
| 247 | six.reraise(UnreadablePostError, UnreadablePostError(*tuple(e.args)), sys.exc_info()[2]) |
242 | 248 | |
243 | 249 | def xreadlines(self): |
244 | 250 | while True: |