raise ValueError(f"Parameter url[]='{type(url)}' is not of type 'str'")
elif url == "":
raise ValueError("Parameter 'url' is empty")
+ elif not validators.url(url):
+ raise ValueError(f"Parameter url='{url}' is not a valid URL")
elif domain + url in _cache["is_in_url"]:
logger.debug("Returning cached is_in_url='%s' - EXIT!", _cache["is_in_url"][domain + url])
return _cache["is_in_url"][domain + url]