Opened 14 years ago
Closed 9 years ago
#14968 closed Bug (needsinfo)
handle BaseExceptions with middleware, or at least KeyboardInterrupt
Reported by: | Alexander Schepanovski | Owned by: | Alexander Schepanovski |
---|---|---|---|
Component: | Core (Other) | Version: | 1.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
I was trying to write a middleware which shows a 503 page on KeyboardInterrupt (which happens on django restart) and run into this.
If it is not handled some unlucky users get 500 error page and search bots go away for a while.
Attachments (1)
Change History (6)
by , 14 years ago
Attachment: | catch_base_exception.diff added |
---|
comment:1 by , 14 years ago
Patch needs improvement: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → Bug |
comment:5 by , 9 years ago
Resolution: | → needsinfo |
---|---|
Status: | new → closed |
I don't understand the purpose of this change and there's been no activity in 5 years. Feel free to reopen with an explanation and an updated patch.
Note:
See TracTickets
for help on using tickets.
BaseException was introduced in Python 2.5, and Django needs to support Python 2.4 (at least for now).
Patch needs to be updated to support the exception class heirarchy in Python 2.4, as well as Python 2.5+