forked from cerc-io/stack-orchestrator
Not a list
This commit is contained in:
parent
023a640252
commit
56b010f512
@ -336,12 +336,15 @@ class LaconicRegistryClient:
|
|||||||
txHash,
|
txHash,
|
||||||
]
|
]
|
||||||
|
|
||||||
parsed = [
|
parsed = None
|
||||||
AttrDict(r) for r in json.loads(logged_cmd(self.log_file, *args)) if r
|
try:
|
||||||
]
|
parsed = AttrDict(json.loads(logged_cmd(self.log_file, *args)))
|
||||||
if len(parsed):
|
except:
|
||||||
self.cache["txs"][txHash] = parsed[0]
|
pass
|
||||||
return parsed[0]
|
|
||||||
|
if parsed:
|
||||||
|
self.cache["txs"][txHash] = parsed
|
||||||
|
return parsed
|
||||||
|
|
||||||
if require:
|
if require:
|
||||||
raise Exception("Cannot locate tx:", hash)
|
raise Exception("Cannot locate tx:", hash)
|
||||||
|
Loading…
Reference in New Issue
Block a user