]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 27 Jun 2023 03:19:30 +0000 (05:19 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 27 Jun 2023 03:19:30 +0000 (05:19 +0200)
- added or processed? ;-)

fba/utils.py

index 79fb52f1c480e5730332347a66114af7aa8b0877..c8d6eeae5557f3233d9711b99da5228bd1672237 100644 (file)
@@ -221,8 +221,8 @@ def process_block(blocker: str, blocked: str, reason: str, block_level: str) ->
     logger.debug("blocker='%s',blocked='%s',reason='%s',block_level='%s' - CALLED!", blocker, blocked, reason, block_level)
     domain_helper.raise_on(blocker)
     domain_helper.raise_on(blocked)
-    procesed = False
 
+    added = False
     if not isinstance(reason, str) and reason is not None:
         raise ValueError(f"Parameter reason[]='{type(reason)}' is not of type 'str'")
     elif not isinstance(block_level, str):
@@ -239,5 +239,5 @@ def process_block(blocker: str, blocked: str, reason: str, block_level: str) ->
         blocks.update_last_seen(blocker, blocked, block_level)
 
     logger.debug("added='%s' - EXIT!", added)
-    return procesed
+    return added
  
\ No newline at end of file