#2481: Exceptions thrown by request middleware are not caught
------------------------------+---------------------------------------------
Reporter: Simon Willison | Owner: nobody
Status: new | Component: Core framework
Version: | Resolution:
Keywords: | Stage: Accepted
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
------------------------------+---------------------------------------------
Comment (by [EMAIL PROTECTED]):
I would like to add some suggestions of mine. I think that some thing like
DjangoExceptionHandler should be added it could handle all known
exceptions thrown in this huge try ... except used in get_response
[http://code.djangoproject.com/browser/django/trunk/django/core/handlers/base.py?rev=3411#L57].
It would be great if it could be replaced from settings by any other user
class.
I think that call to mail_admins function is very annoying because it
cannot be turned off. It could be one of features off
DjangoExceptionHandler.
Another thing is that Http404 and PermissionDenied exceptions are not
flexible. There is no way to change behavior of django when they are
thrown.
--
Ticket URL: <http://code.djangoproject.com/ticket/2481#comment:2>
Django Code <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
-~----------~----~----~----~------~----~------~--~---