From: Roland Häder Date: Mon, 12 Jun 2023 17:11:10 +0000 (+0200) Subject: Fixed: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=28fa70b1bc5b760131377aa0091a9b9d3cd39cf1;p=fba.git Fixed: - one lesser return statement, currently I have no idea on how to rewrite this? --- diff --git a/fba/fba.py b/fba/fba.py index f627ffa..6273e45 100644 --- a/fba/fba.py +++ b/fba/fba.py @@ -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