From 3e07125b58b8aa673bac3b18d5c62664f35c9a2f Mon Sep 17 00:00:00 2001 From: ibraheem-latent Date: Fri, 12 Sep 2025 15:44:47 -0700 Subject: [PATCH 1/3] coldkeypub is not a file --- bittensor_cli/src/commands/wallets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bittensor_cli/src/commands/wallets.py b/bittensor_cli/src/commands/wallets.py index 391fe2cf2..1112d195d 100644 --- a/bittensor_cli/src/commands/wallets.py +++ b/bittensor_cli/src/commands/wallets.py @@ -823,6 +823,7 @@ async def wallet_list(wallet_path: str, json_output: bool): for wallet in wallets: if ( wallet.coldkeypub_file.exists_on_device() + and os.path.isfile(wallet.coldkeypub_file.path) and not wallet.coldkeypub_file.is_encrypted() ): coldkeypub_str = wallet.coldkeypub.ss58_address From 66fef1d5abfe131fa51507784675d97b2bca51a7 Mon Sep 17 00:00:00 2001 From: ibraheem-latent Date: Fri, 12 Sep 2025 15:45:27 -0700 Subject: [PATCH 2/3] 'hotkey' is not a directory --- bittensor_cli/src/bittensor/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bittensor_cli/src/bittensor/utils.py b/bittensor_cli/src/bittensor/utils.py index 1497470a9..d2a6bed83 100644 --- a/bittensor_cli/src/bittensor/utils.py +++ b/bittensor_cli/src/bittensor/utils.py @@ -266,7 +266,7 @@ def get_hotkey_wallets_for_wallet( hotkeys_path = wallet_path / wallet.name / "hotkeys" try: hotkeys = [entry.name for entry in hotkeys_path.iterdir()] - except FileNotFoundError: + except (FileNotFoundError, NotADirectoryError): hotkeys = [] for h_name in hotkeys: if h_name.endswith("pub.txt"): From 8e8efadeb635904556b798e40ce965b922659fed Mon Sep 17 00:00:00 2001 From: ibraheem-latent Date: Fri, 12 Sep 2025 15:46:17 -0700 Subject: [PATCH 3/3] individual hotkey file is malformed --- bittensor_cli/src/bittensor/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bittensor_cli/src/bittensor/utils.py b/bittensor_cli/src/bittensor/utils.py index d2a6bed83..80aab6916 100644 --- a/bittensor_cli/src/bittensor/utils.py +++ b/bittensor_cli/src/bittensor/utils.py @@ -307,6 +307,7 @@ def get_hotkey_wallets_for_wallet( AttributeError, TypeError, KeyFileError, + ValueError, ): # usually an unrelated file like .DS_Store continue