Opened 5 years ago

Closed 4 months ago

#14968 closed Bug (needsinfo)

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 5 years ago.

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by Suor

comment:1 Changed 5 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 5 years ago by anonymous

  • Severity set to Normal
  • Type set to Bug

comment:3 Changed 4 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:4 Changed 4 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

comment:5 Changed 4 months ago by timgraham

  • Resolution set to needsinfo
  • Status changed from new to 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.
Back to Top