1
0
mirror of https://github.com/django/django.git synced 2025-10-29 16:46:11 +00:00

[py3] Fixed reraising of exceptions

reraise with second argument to None is not supported.
This commit is contained in:
Claude Paroz
2012-08-11 23:43:45 +02:00
parent be7f1099c6
commit 15fffcc751
3 changed files with 3 additions and 3 deletions

View File

@@ -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):
"""