]> git.mxchange.org Git - fba.git/commitdiff
Fixed:
authorRoland Häder <roland@mxchange.org>
Mon, 12 Jun 2023 17:11:10 +0000 (19:11 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 12 Jun 2023 17:11:10 +0000 (19:11 +0200)
- one lesser return statement, currently I have no idea on how to rewrite this?

fba/fba.py

index f627ffa4f856d53bb999e754e5f5116559e5da0d..6273e451383133dd4e3b0e8e6e1831461b03bce2 100644 (file)
@@ -157,13 +157,14 @@ def process_domain(domain: str, blocker: str, command: str) -> bool:
         # DEBUG: print(f"DEBUG: domain='{domain}' has been recently checked - SKIPPED!")
         return False
 
+    processed = False
     try:
         print(f"INFO: Fetching instances for instane='{domain}',blocker='{blocker}',command='{command}' ...")
         federation.fetch_instances(domain, blocker, None, command)
+        processed = True
     except network.exceptions as exception:
         print(f"WARNING: Exception '{type(exception)}' during fetching instances (fetch_oliphant) from domain='{domain}'")
         instances.update_last_error(domain, exception)
-        return False
 
-    # DEBUG: print(f"DEBUG: Success! - EXIT!")
-    return True
+    # DEBUG: print(f"DEBUG: processed='{processed}' - EXIT!")
+    return processed