◐ Shell
clean mode source ↗

Message 251042 - Python tracker

I believe this is equivalent.

In general, bare excepts should be either made more specific or commented as intentional.  Since derived classes can override finish_request, and fail any which way, the latter is probably appropriate here:
    # derived classes may override finish_request