~netlandish/django-pagination

8df2d3c3985857213effe95e92f86afb2f804290 — floguy 16 years ago 86ca391
Added a new exception handler in the middleware.

git-svn-id: https://django-pagination.googlecode.com/svn/trunk@28 7f1efe38-554e-0410-b69d-834cb44da2d5
1 files changed, 1 insertions(+), 1 deletions(-)

M pagination/middleware.py
M pagination/middleware.py => pagination/middleware.py +1 -1
@@ 6,5 6,5 @@ class PaginationMiddleware(object):
    def process_request(self, request):
        try:
            request.page = int(request.REQUEST['page'])
        except (KeyError, ValueError):
        except (KeyError, ValueError, TypeError):
            request.page = 1
\ No newline at end of file