def raise_on(domain: str):
logger.debug("domain='%s' - CALLED!", domain)
if not isinstance(domain, str):
- raise ValueError(f"Parameter domain[]='{type(domain)}' is not 'str'")
+ raise ValueError(f"Parameter domain[]='{type(domain)}' is not of type 'str'")
elif domain == "":
raise ValueError("Parameter 'domain' is empty")
elif domain.lower() != domain:
raise_on(domain)
if not isinstance(url, str):
- raise ValueError(f"Parameter url[]='%s' is not 'str'", type(url))
+ raise ValueError(f"Parameter url[]='%s' is not of type 'str'", type(url))
elif url == "":
raise ValueError("Parameter 'url' is empty")