]> git.mxchange.org Git - fba.git/blobdiff - fba/http/network.py
Continued:
[fba.git] / fba / http / network.py
index a5ad140e1198300f1b4f0e389be55d1d60dd5612..ec548d8f9c7de407db989aae36db48947a10d399 100644 (file)
@@ -125,6 +125,8 @@ def fetch_api_url(url: str, timeout: tuple) -> dict:
         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 not isinstance(timeout, tuple):
         raise ValueError(f"timeout[]='{type(timeout)}' is not of type 'tuple'")