Fixes issues related with #17
authorMike TUMS <mktums@gmail.com>
Wed, 9 Apr 2014 11:23:09 +0000 (15:23 +0400)
committerMike TUMS <mktums@gmail.com>
Wed, 9 Apr 2014 11:23:09 +0000 (15:23 +0400)
linaro_django_pagination/templatetags/pagination_tags.py

index 995edc3..45857f9 100644 (file)
@@ -329,9 +329,7 @@ def paginate(context, window=DEFAULT_WINDOW, margin=DEFAULT_MARGIN):
                 new_context['getvars'] = ''
         return new_context
     except (KeyError, AttributeError):
                 new_context['getvars'] = ''
         return new_context
     except (KeyError, AttributeError):
-        pass
-
-    return context
+        return {}
 
 
 register = Library()
 
 
 register = Library()