]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 14 Jun 2024 16:48:25 +0000 (18:48 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 14 Jun 2024 16:48:25 +0000 (18:48 +0200)
- fixed exception, need to check is_registered() here first

fba/helpers/processing.py

index cd19eeb6ab66c330b98796b01ad3cf6ce6b92399..6c62d90fbce9a0bb6b054c96ad3c0a97aa908791 100644 (file)
@@ -55,7 +55,7 @@ def instance(blocked: str, blocker: str, command: str, force: bool = False) -> b
     logger.debug("blocked='%s' - AFTER!", blocked)
 
     logger.debug("Checking if blocker='%s' has pending data ...", blocker)
-    if instances.has_pending(blocker):
+    if instances.is_registered(blocker) and instances.has_pending(blocker):
         logger.debug("Flushing updates for blocker='%s' ...", blocker)
         instances.update(blocker)