diff options
author | Adrian Holovaty <adrian@holovaty.com> | 2010-01-10 18:36:20 +0000 |
---|---|---|
committer | Adrian Holovaty <adrian@holovaty.com> | 2010-01-10 18:36:20 +0000 |
commit | 5ceed0a05388079118319940acdb2abe4ee01de6 (patch) | |
tree | c158b29638a509bef59fbbff164faf2749d35fe4 /django/db/models/query.py | |
parent | bef891399ec278390ee148b0bb87d4c4140fc4c6 (diff) | |
download | django-5ceed0a05388079118319940acdb2abe4ee01de6.tar.gz |
Changed a whole bunch of places to raise exception instances instead of old-style raising exception classes plus a comma. Good for the future Python 3 conversion
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/query.py')
-rw-r--r-- | django/db/models/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py index 365df96fb0..c8e630ad9d 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -185,7 +185,7 @@ class QuerySet(object): qs.query.set_limits(k, k + 1) return list(qs)[0] except self.model.DoesNotExist, e: - raise IndexError, e.args + raise IndexError(e.args) def __and__(self, other): self._merge_sanity_check(other) |