Added a new exception handler in the middleware.
authorfloguy <floguy@7f1efe38-554e-0410-b69d-834cb44da2d5>
Sat, 30 Aug 2008 18:10:59 +0000 (18:10 +0000)
committerfloguy <floguy@7f1efe38-554e-0410-b69d-834cb44da2d5>
Sat, 30 Aug 2008 18:10:59 +0000 (18:10 +0000)
git-svn-id: https://django-pagination.googlecode.com/svn/trunk@28 7f1efe38-554e-0410-b69d-834cb44da2d5

pagination/middleware.py

index 0bab767..5e917c5 100644 (file)
@@ -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