def METHOD_NAME(self, *args, **kwargs):
    try:
        result = func(self, *args, **kwargs)
        return result
    except httpx.ConnectError as err:  # noqa: F841
        return wrap_error(self.base_url)