From 28fa70b1bc5b760131377aa0091a9b9d3cd39cf1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 12 Jun 2023 19:11:10 +0200 Subject: [PATCH] Fixed: - one lesser return statement, currently I have no idea on how to rewrite this? --- fba/fba.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.5