#10834: BaseHandler does not handle resolver returning None
------------------------------------+---------------------------------------
Reporter: xerolas | Owner: nobody
Status: new | Milestone:
Component: HTTP handling | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Changes (by mtredinnick):
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_docs: => 0
Comment:
This is probably addressing the wrong end of the issue. As things stand,
there is a problem. But it isn't that we aren't handling None. It's that
we are seeing None in the first place.
We should be raising an exception (either `Http404` or `Resolver404` might
be appropriate). It's an exceptional condition and should enter the normal
code paths for handling non-existent URLs, not require special handling in
the non-exceptional path.
--
Ticket URL: <http://code.djangoproject.com/ticket/10834#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---