Skip to content

Commit 41f4bfe

Browse files
committed
Catch additional exceptions for generating the hotkeypub
1 parent 498a1f7 commit 41f4bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bittensor_cli/src/bittensor/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,5 +1443,5 @@ def get_hotkey_pub_ss58(wallet: Wallet) -> str:
14431443
"""
14441444
try:
14451445
return wallet.hotkeypub.ss58_address
1446-
except KeyFileError:
1446+
except (KeyFileError, AttributeError):
14471447
return wallet.hotkey.ss58_address

0 commit comments

Comments
 (0)