From b12b9b6821d7c64f127da7676678e21290905f51 Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 21 May 2025 15:10:43 -0700 Subject: [PATCH] remove references to non-existent fields, add a clear error message --- bittensor_cli/src/commands/wallets.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bittensor_cli/src/commands/wallets.py b/bittensor_cli/src/commands/wallets.py index 006fb5119..ae6a01ab8 100644 --- a/bittensor_cli/src/commands/wallets.py +++ b/bittensor_cli/src/commands/wallets.py @@ -438,11 +438,10 @@ async def wallet_create( "name": wallet.name, "path": wallet.path, "hotkey": wallet.hotkey_str, - "hotkey_ss58": wallet.hotkey.ss58_address, "coldkey_ss58": wallet.coldkeypub.ss58_address, } - except KeyFileError: - err = "KeyFileError: File is not writable" + except KeyFileError as error: + err = str(error) print_error(err) output_dict["error"] = err try: @@ -458,10 +457,9 @@ async def wallet_create( "path": wallet.path, "hotkey": wallet.hotkey_str, "hotkey_ss58": wallet.hotkey.ss58_address, - "coldkey_ss58": wallet.coldkeypub.ss58_address, } - except KeyFileError: - err = "KeyFileError: File is not writable" + except KeyFileError as error: + err = str(error) print_error(err) output_dict["error"] = err if json_output: