]> git.mxchange.org Git - fba.git/blobdiff - fba/http/federation.py
Continued:
[fba.git] / fba / http / federation.py
index f04fd3fe2f42deab6de2135d6b52f7aa4fcd7eec..eab7df3159d4f42fbfed915cdb6004573cdd6c61 100644 (file)
@@ -96,7 +96,7 @@ def fetch_instances(domain: str, origin: str, software: str, command: str, path:
         instances.add(domain, origin, command, path, software)
 
         logger.debug("software='%s'", software)
-        if software_helper.is_relay(software):
+        if software is not None and software_helper.is_relay(software):
             logger.debug("software='%s' is a relay software - EXIT!", software)
             _DEPTH = _DEPTH - 1
             return
@@ -201,7 +201,7 @@ def fetch_peers(domain: str, software: str, origin: str) -> list:
         raise ValueError(f"Parameter software[]='{type(software)}' is not of type 'str'")
     elif isinstance(software, str) and software == "":
         raise ValueError("Parameter 'software' is empty")
-    elif software_helper.is_relay(software):
+    elif software is not None and software_helper.is_relay(software):
         raise ValueError(f"domain='{domain}' is of software='{software}' and isn't supported here.")
     elif not isinstance(origin, str) and origin is not None:
         raise ValueError(f"Parameter origin[]='{type(origin)}' is not of type 'str'")