From: floguy Date: Fri, 24 Oct 2008 08:12:03 +0000 (+0000) Subject: Fix a possible uncaught attribute error. Thanks for the bug report, bela.hausmann. X-Git-Tag: 1.0.6~17 X-Git-Url: https://git.mdrn.pl/django-pagination.git/commitdiff_plain/ad03303fd5bf966f5744d3115cf911f5fddd354c?ds=sidebyside;hp=652529ca5f85b1ac6912968b60ac238c98a644ad 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 --- 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)