Author martin.panter
Recipients berker.peksag, dmi.baranov, karlcow, martin.panter, orsenthil, yselivanov
Date 2015-09-19.06:28:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442644126.54.0.433410052831.issue17319@psf.upfronthosting.co.za>
In-reply-to
Content
The proposed patch changes the code to 500 if the code is invalid (rather than raising an exception as I initially assumed).

I would be inclined to leave send_response() without any extra error checking or handling, unless this is a common problem and there is a real need for it. Although I reckon it might be nice to have a generic (higher-level) exception handler for the HTTP server that responds with “500 Internal server error” if possible.
History
Date User Action Args
2015-09-19 06:28:46martin.pantersetrecipients: + martin.panter, orsenthil, karlcow, berker.peksag, yselivanov, dmi.baranov
2015-09-19 06:28:46martin.pantersetmessageid: <1442644126.54.0.433410052831.issue17319@psf.upfronthosting.co.za>
2015-09-19 06:28:46martin.panterlinkissue17319 messages
2015-09-19 06:28:46martin.pantercreate