Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions bittensor_cli/src/commands/wallets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
Loading