def METHOD_NAME(url, params=None, retries: int = 3, **kwargs) -> requests.Response:
    """Makes a request with the custom user agent and retry on connection error"""
    user_agent = "{} ({})".format(
        slugify(settings.PRODUCT_NAME), settings.TEMPLATE_META["github"]
    )
    kwargs.setdefault("headers", {})
    kwargs["headers"]["User-Agent"] = user_agent
    # Hack to make Landshut work with the RIS' broken SSL setup
    if settings.SSL_NO_VERIFY:
        kwargs["verify"] = False
    with warnings.catch_warnings() if settings.SSL_NO_VERIFY else nullcontext():
        if settings.SSL_NO_VERIFY:
            warnings.filterwarnings("ignore", category=InsecureRequestWarning)
        while True:
            try:
                response = requests.get(url, params, **kwargs)
                response.raise_for_status()
                return response
            except requests.exceptions.ConnectionError as e:
                retries -= 1
                if retries == 0:
                    raise
                logger.error(f"Error {e} in request for {url}, retrying")