From 56b010f512bc1fe855c4ca04e0a0383e822378e3 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 20 Aug 2024 14:58:06 -0500 Subject: [PATCH] Not a list --- stack_orchestrator/deploy/webapp/util.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/stack_orchestrator/deploy/webapp/util.py b/stack_orchestrator/deploy/webapp/util.py index 67cfb807..18e0566a 100644 --- a/stack_orchestrator/deploy/webapp/util.py +++ b/stack_orchestrator/deploy/webapp/util.py @@ -336,12 +336,15 @@ class LaconicRegistryClient: txHash, ] - parsed = [ - AttrDict(r) for r in json.loads(logged_cmd(self.log_file, *args)) if r - ] - if len(parsed): - self.cache["txs"][txHash] = parsed[0] - return parsed[0] + parsed = None + try: + parsed = AttrDict(json.loads(logged_cmd(self.log_file, *args))) + except: + pass + + if parsed: + self.cache["txs"][txHash] = parsed + return parsed if require: raise Exception("Cannot locate tx:", hash)