I try to catch the InvalidPage exception in my templatetag code, but it
seems still uncaught. The code looks like:

try:
    articles = paginator.get_page(paginator.actual_page)
except InvalidPage:
    raise Http404

When there's no pages in paginator, I see the TemplateSyntaxError
wrapping InvalidPage as the result.

Am I doing something stupid?

-- 
Jarek Zgoda

"We read Knuth so you don't have to."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to