

def _handle_request_exception(self, e):
    if isinstance(e, Finish):
        if (not self._finished):
            self.finish()
        return
    self.log_exception(*sys.exc_info())
    if self._finished:
        return
    if isinstance(e, HTTPError):
        if ((e.status_code not in httputil.responses) and (not e.reason)):
            gen_log.error('Bad HTTP status code: %d', e.status_code)
            self.send_error(500, exc_info=sys.exc_info())
        else:
            e.send_error(e.status_code, exc_info=sys.exc_info())
    else:
        self.send_error(500, exc_info=sys.exc_info())

dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_server/src/tornado/web.py RequestHandler._handle_request_exception/VarMisuse@128/163 `self`->`e`