

def handle_model_generation(config, raml_resource, route_name):
    ' Generates model name and runs `setup_data_model` to get\n    or generate actual model class.\n\n    :param raml_resource: Instance of ramlfications.raml.ResourceNode.\n    :param route_name: String name of the resource.\n    '
    model_name = generate_model_name(route_name)
    try:
        return setup_data_model(config, raml_resource, model_name)
    except ValueError as ex:
        raise ValueError('{}: {}'.format(model_name, str(route_name)))

dataset/ETHPy150Open ramses-tech/ramses/ramses/models.py handle_model_generation/VarMisuse@56/170 `ex`->`route_name`