Skip to content

Commit ce8e7c2

Browse files
committed
update for chia 2.5.1
1 parent 7a0b166 commit ce8e7c2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cats/cats.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,12 @@ async def cmd_func(
440440
"Yes",
441441
}
442442
if confirmation:
443-
response = await push_tx(wallet_rpc_port, fingerprint, final_bundle, Path(root_path))
444-
if "error" in response:
445-
print(f"Error pushing transaction: {response['error']}")
443+
try:
444+
await push_tx(wallet_rpc_port, fingerprint, final_bundle, Path(root_path))
445+
except Exception as e:
446+
print(f"Error pushing transaction: {e}")
446447
return
448+
447449
print("Successfully pushed the transaction to the network")
448450

449451
print(f"Asset ID: {curried_tail.get_tree_hash().hex()}")

0 commit comments

Comments
 (0)