mirror of
https://github.com/django/django.git
synced 2025-09-23 18:52:57 +00:00
[py3] Fixed reraising of exceptions
reraise with second argument to None is not supported.
This commit is contained in:
parent
be7f1099c6
commit
15fffcc751
3 changed files with 3 additions and 3 deletions
|
@ -472,7 +472,7 @@ class QuerySet(object):
|
|||
return self.get(**lookup), False
|
||||
except self.model.DoesNotExist:
|
||||
# Re-raise the IntegrityError with its original traceback.
|
||||
six.reraise(exc_info[1], None, exc_info[2])
|
||||
six.reraise(*exc_info)
|
||||
|
||||
def latest(self, field_name=None):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue