]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 12 Jun 2023 15:11:13 +0000 (17:11 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 12 Jun 2023 15:11:13 +0000 (17:11 +0200)
- ValueException is wrong, it is ValueError

fba/csrf.py
fba/federation.py
fba/network.py

index 6efcf23bc7bccbb65c1103d2ce3754066c481036..a7f942dc2612b0b97065ffc5aaa6110bb6581151 100644 (file)
@@ -27,7 +27,7 @@ def determine(domain: str, headers: dict) -> dict:
     elif domain == "":
         raise ValueError("Parameter 'domain' is empty")
     elif domain.endswith(".tld"):
-        raise ValueException(f"domain='{domain}' is a fake domain, please don't crawl them!")
+        raise ValueError(f"domain='{domain}' is a fake domain, please don't crawl them!")
     elif not isinstance(headers, dict):
         raise ValueError(f"Parameter headers[]='{type(headers)}' is not 'dict'")
 
index 371bf90ed51d4ae1b00ce9aa2be15f772caaa0c6..54157b63673409b046dde1d4b6a5a59975bc8000 100644 (file)
@@ -48,7 +48,7 @@ def fetch_instances(domain: str, origin: str, software: str, command: str, path:
     elif domain == "":
         raise ValueError("Parameter 'domain' is empty")
     elif domain.endswith(".tld"):
-        raise ValueException(f"domain='{domain}' is a fake domain, please don't crawl them!")
+        raise ValueError(f"domain='{domain}' is a fake domain, please don't crawl them!")
     elif not isinstance(origin, str) and origin is not None:
         raise ValueError(f"Parameter origin[]='{type(origin)}' is not 'str'")
     elif software is None:
index 821c7ac68d17a82aded92b779126313ddae241e8..5b87c90c76025496be206b5de01d9f4fd8044e46 100644 (file)
@@ -49,7 +49,7 @@ def post_json_api(domain: str, path: str, data: str, headers: dict = {}) -> dict
     elif domain == "":
         raise ValueError("Parameter 'domain' is empty")
     elif domain.endswith(".tld"):
-        raise ValueException(f"domain='{domain}' is a fake domain, please don't crawl them!")
+        raise ValueError(f"domain='{domain}' is a fake domain, please don't crawl them!")
     elif not isinstance(path, str):
         raise ValueError(f"path[]='{type(path)}' is not 'str'")
     elif path == "":
@@ -134,7 +134,7 @@ def get_json_api(domain: str, path: str, headers: dict, timeout: tuple) -> dict:
     elif domain == "":
         raise ValueError("Parameter 'domain' is empty")
     elif domain.endswith(".tld"):
-        raise ValueException(f"domain='{domain}' is a fake domain, please don't crawl them!")
+        raise ValueError(f"domain='{domain}' is a fake domain, please don't crawl them!")
     elif not isinstance(path, str):
         raise ValueError(f"path[]='{type(path)}' is not 'str'")
     elif path == "":
@@ -184,7 +184,7 @@ def send_bot_post(domain: str, blocklist: dict):
     elif domain == "":
         raise ValueError("Parameter 'domain' is empty")
     elif domain.endswith(".tld"):
-        raise ValueException(f"domain='{domain}' is a fake domain, please don't crawl them!")
+        raise ValueError(f"domain='{domain}' is a fake domain, please don't crawl them!")
     elif not isinstance(blocklist, dict):
         raise ValueError(f"Parameter blocklist[]='{type(blocklist)}' is not 'dict'")
 
@@ -231,7 +231,7 @@ def fetch_response(domain: str, path: str, headers: dict, timeout: tuple) -> req
     elif domain == "":
         raise ValueError("Parameter 'domain' is empty")
     elif domain.endswith(".tld"):
-        raise ValueException(f"domain='{domain}' is a fake domain, please don't crawl them!")
+        raise ValueError(f"domain='{domain}' is a fake domain, please don't crawl them!")
     elif not isinstance(path, str):
         raise ValueError(f"Parameter path[]='{type(path)}' is not 'str'")
     elif path == "":