What steps will reproduce the problem?
1. Try to put something like ?page=n, where you know for sure that n-th page
number doesn't exist in url.
2. Should see AttributeError not being caught when context['paginator'] == None
What is the expected output? What do you see instead?
shouldn't break
What version of the product are you using? On what operating system?
1.0.7
Please provide any additional information below.
In pagination_tags.py, and the bottom of paginate tag, you've used
"""
try:
....
except KeyError, AttributeError:
...
"""
Should be:
"""
except (KeyError, AttributeError).
"""
Thanks
Original issue reported on code.google.com by lorochk...@gmail.com on 28 Jul 2010 at 10:35
Original issue reported on code.google.com by
lorochk...@gmail.com
on 28 Jul 2010 at 10:35