def __exit__(self, type, value, tb):
        if (value == None):
            return True
        if (isinstance(value, NoPerm)):
            self.svc.return_error(403, value.args[0])
        elif (isinstance(value, WrongArgs)):
            self.svc.return_error(400, value.args[0])
        elif (isinstance(value, Unauthorized)):
            self.svc.return_error(401, value.args[0])
        elif (isinstance(value, NotFound)):
            self.svc.return_error(404, value.args[0])
        elif (isinstance(value, OutOfRange)):
            self.svc.return_error(416, value.args[0])
        elif (isinstance(value, ServerError)):
            self.svc.return_error(500, value.args[0])
        else:
            info = "".join(traceback.format_exception(type, value, tb))
            Log.error(info % "Unexpected exception! %s")
            self.svc.return_error(500, "Unexpected server exception", info);
            return False
        return True
dataset/ETHPy150Open HenryHu/pybbs/errors.py/error_handler.__exit__/swapped operands of `%`