X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=fba%2Fhelpers%2Fdomain.py;h=5328e3f37eeddc8a25043b390249704a7486de82;hb=65e73ecfb8dbe663972ceed88e027344ac0106f2;hp=4e7dc38e36319daf8288df7b85f4244072f579d6;hpb=35f7057194d0a6bfbb58dc2a34e0ae1562643b99;p=fba.git diff --git a/fba/helpers/domain.py b/fba/helpers/domain.py index 4e7dc38..5328e3f 100644 --- a/fba/helpers/domain.py +++ b/fba/helpers/domain.py @@ -26,7 +26,7 @@ logger = logging.getLogger(__name__) 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: @@ -47,7 +47,7 @@ def is_in_url(domain: str, url: str) -> bool: 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")