summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/core/paginator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/paginator.py b/django/core/paginator.py
index dabd20dfc0..04cc4bf481 100644
--- a/django/core/paginator.py
+++ b/django/core/paginator.py
@@ -173,7 +173,7 @@ class ObjectPaginator(Paginator):
if self._count is None:
try:
self._count = self.object_list.count()
- except AttributeError:
+ except TypeError:
self._count = len(self.object_list)
return self._count
count = property(_get_count)