From 02e9b695c798b15428c4974665eab987c9637165 Mon Sep 17 00:00:00 2001 From: Matt Hauff Date: Thu, 1 Jun 2023 13:25:57 -0700 Subject: [PATCH] Fix vcs get command when no proofs exist yet --- chia/cmds/wallet_funcs.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/chia/cmds/wallet_funcs.py b/chia/cmds/wallet_funcs.py index 83b4f6ccbcef..9e5543d8527f 100644 --- a/chia/cmds/wallet_funcs.py +++ b/chia/cmds/wallet_funcs.py @@ -1255,9 +1255,10 @@ async def get_vcs(args: Dict, wallet_client: WalletRpcClient, fingerprint: int) vc_records, proofs = await wallet_client.vc_get_list(args["start"], args["count"]) print("Proofs:") for hash, proof_dict in proofs.items(): - print(f"- {hash}") - for proof in proof_dict: - print(f" - {proof}") + if proof_dict is not None: + print(f"- {hash}") + for proof in proof_dict: + print(f" - {proof}") for record in vc_records: print("") print(f"Launcher ID: {record.vc.launcher_id.hex()}")