Opened 11 years ago

Closed 5 years ago

#6992 closed Cleanup/optimization (fixed)

Better error message if Middleware.process_response returns None

Reported by: Thomas Güttler Owned by: nobody
Component: Core (Other) Version: master
Severity: Normal Keywords:
Cc: hv@… Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


It is easy to forget the return statement in process_response(). This
little patch results in a better error message.

Attachments (1)

6992.diff (701 bytes) - added by Thomas Güttler 11 years ago.

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by Thomas Güttler

Attachment: 6992.diff added

comment:1 Changed 11 years ago by Marc Fargas

Triage Stage: UnreviewedAccepted

comment:2 Changed 10 years ago by Chris Beaven

Patch needs improvement: set

Error message is a wee bit confusing (and is the wsgi handler isn't the only place where this is needed - maybe a small refactor would be good).

comment:3 Changed 8 years ago by Julien Phalip

Severity: Normal
Type: Cleanup/optimization

comment:4 Changed 7 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:5 Changed 7 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:6 Changed 5 years ago by Aymeric Augustin

Has patch: unset
Patch needs improvement: unset
Triage Stage: AcceptedReady for checkin


It's quite simple but I'll wait for the CI to run the test suite.

comment:7 Changed 5 years ago by Aymeric Augustin <aymeric.augustin@…>

Resolution: fixed
Status: newclosed

In 47a9347b9828ed0186d676ee0c5cadd9e6a93edb:

Fixed #6992 -- Improved error when middleware omits HttpResponse.

Thanks guettli for the report.

Note: See TracTickets for help on using tickets.
Back to Top