mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[py3] Fixed reraising of exceptions
reraise with second argument to None is not supported.
This commit is contained in:
@@ -385,7 +385,7 @@ class Client(RequestFactory):
|
||||
if self.exc_info:
|
||||
exc_info = self.exc_info
|
||||
self.exc_info = None
|
||||
six.reraise(exc_info[1], None, exc_info[2])
|
||||
six.reraise(*exc_info)
|
||||
|
||||
# Save the client and request that stimulated the response.
|
||||
response.client = self
|
||||
|
||||
Reference in New Issue
Block a user