Fix a possible uncaught attribute error. Thanks for the bug report, bela.hausmann.
authorfloguy <floguy@7f1efe38-554e-0410-b69d-834cb44da2d5>
Fri, 24 Oct 2008 08:12:03 +0000 (08:12 +0000)
committerfloguy <floguy@7f1efe38-554e-0410-b69d-834cb44da2d5>
Fri, 24 Oct 2008 08:12:03 +0000 (08:12 +0000)
git-svn-id: https://django-pagination.googlecode.com/svn/trunk@40 7f1efe38-554e-0410-b69d-834cb44da2d5

pagination/templatetags/pagination_tags.py

index e566902..32b3b64 100644 (file)
@@ -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)