From ad03303fd5bf966f5744d3115cf911f5fddd354c Mon Sep 17 00:00:00 2001 From: floguy Date: Fri, 24 Oct 2008 08:12:03 +0000 Subject: [PATCH] Fix a possible uncaught attribute error. Thanks for the bug report, bela.hausmann. git-svn-id: https://django-pagination.googlecode.com/svn/trunk@40 7f1efe38-554e-0410-b69d-834cb44da2d5 --- pagination/templatetags/pagination_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagination/templatetags/pagination_tags.py b/pagination/templatetags/pagination_tags.py index e566902..32b3b64 100644 --- a/pagination/templatetags/pagination_tags.py +++ b/pagination/templatetags/pagination_tags.py @@ -185,7 +185,7 @@ def paginate(context, window=DEFAULT_WINDOW): else: to_return['getvars'] = '' return to_return - except KeyError: + except KeyError, AttributeError: return {} register.inclusion_tag('pagination/pagination.html', takes_context=True)(paginate) register.tag('autopaginate', do_autopaginate) -- 2.20.1