pirave / django-pagination

Automatically exported from code.google.com/p/django-pagination
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

bug in pagination tag #70

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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