Message251058
I suggest changing the “except” clause to “except BaseException”, which would make the intention clearer.
As an alternative, see also my Issue 23430, were I proposed not catching exceptions like KeyboardInterrupt and SystemExit, by changing this to:
try:
self.finish_request(request, client_address)
except Exception:
self.handle_error(request, client_address)
finally:
self.shutdown_request(request) |
|
Date |
User |
Action |
Args |
2015-09-19 06:47:13 | martin.panter | set | recipients:
+ martin.panter, terry.reedy, berker.peksag, Алексей Смирнов |
2015-09-19 06:47:13 | martin.panter | set | messageid: <1442645233.57.0.950599793119.issue25139@psf.upfronthosting.co.za> |
2015-09-19 06:47:13 | martin.panter | link | issue25139 messages |
2015-09-19 06:47:13 | martin.panter | create | |
|