- one lesser return statement, currently I have no idea on how to rewrite this?
# 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