From: Zygmunt Krynicki Date: Wed, 26 Jun 2013 11:49:21 +0000 (-0700) Subject: Merge pull request #15 from mjtorn/master X-Git-Tag: release-2.1~8 X-Git-Url: https://git.mdrn.pl/django-pagination.git/commitdiff_plain/705e40c34ace623dd90dc20b09c2ac3743cb869c?hp=7b2e01be97c65b6e2700d4904c72eca446866853 Merge pull request #15 from mjtorn/master Unnecessarily early return to be fixed --- diff --git a/linaro_django_pagination/templatetags/pagination_tags.py b/linaro_django_pagination/templatetags/pagination_tags.py index be22347..a4e4fed 100644 --- a/linaro_django_pagination/templatetags/pagination_tags.py +++ b/linaro_django_pagination/templatetags/pagination_tags.py @@ -326,7 +326,6 @@ def paginate(context, window=DEFAULT_WINDOW, margin=DEFAULT_MARGIN): new_context['getvars'] = "&%s" % getvars.urlencode() else: new_context['getvars'] = '' - return new_context except (KeyError, AttributeError): new_context = {}