Opened 3 years ago

Last modified 3 years ago

#14968 new Bug

handle BaseExceptions with middleware, or at least KeyboardInterrupt

Reported by: Suor Owned by: Suor
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


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)

catch_base_exception.diff (643 bytes) - added by Suor 3 years ago.

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by Suor

comment:1 Changed 3 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement set
  • Triage Stage changed from Unreviewed to Accepted

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+

comment:2 Changed 3 years ago by anonymous

  • Severity set to Normal
  • Type set to Bug

comment:3 Changed 2 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:4 Changed 2 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

Add Comment

Modify Ticket

Change Properties
<Author field>
as new
The owner will be changed from Suor to anonymous. Next status will be 'assigned'
as The resolution will be set. Next status will be 'closed'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.