From 3aebfa438c0e76db13ffbb814c39af4a25b0f934 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 14 Jun 2024 18:48:25 +0200 Subject: [PATCH] Continued: - fixed exception, need to check is_registered() here first --- fba/helpers/processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fba/helpers/processing.py b/fba/helpers/processing.py index cd19eeb..6c62d90 100644 --- a/fba/helpers/processing.py +++ b/fba/helpers/processing.py @@ -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) -- 2.39.5