Open
Conversation
Replace overly broad `except Exception` catches with specific exception types to improve error handling clarity and debugging: - subtensor_interface.py: Handle both TimeoutError and asyncio.TimeoutError for substrate initialization timeout (resolves TODO comment) - utils.py (is_valid_github_url): Catch ValueError, TypeError, AttributeError for URL parsing exceptions (resolves TODO comment) - utils.py (normalize_hyperparameters): Catch KeyError, ValueError, TypeError, AttributeError for parameter normalization - wallets.py (new_hotkey): Catch ValueError, TypeError for Keypair.create_from_uri - wallets.py (new_coldkey): Catch ValueError, TypeError for Keypair.create_from_uri - wallets.py (wallet_create): Catch ValueError, TypeError, KeyFileError for keypair and wallet creation This change improves code quality by making exception handling more explicit and easier to debug while maintaining the same error recovery behavior.
Per reviewer feedback: bittensor_wallet.Keypair.create_from_uri() only raises TypeError, not ValueError. Removed ValueError from exception tuples on lines 380 and 431.
Feat/balancer swap updates
…type not handleable
…mismatches-in-hyperparam-set Handle different types in `sudo set` with arbitrary hyperparams
Update: Python 3.9 End of Life
…f-formatting-workflow Optimises the workflow for ruff.
…action Optimises the workflow for ruff.
feat: Add hyperparams: sudo_set_sn_owner_hotkey, sudo_set_subnet_owner_hotkey, sudo_set_recycle_or_burn
subnet buyback / stake-burn
thewhaleking
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's Changed
btcli subnets list --json-outcommand by @GlobalStar117 in fix: JSON output empty forbtcli subnets list --json-outcommand #800create_table()Utility for Consistent Table Styling by @eureka928 in Reusablecreate_table()Utility for Consistent Table Styling #790sudo setwith arbitrary hyperparams by @thewhaleking in Handle different types insudo setwith arbitrary hyperparams #825New Contributors
btcli subnets list --json-outcommand #800Full Changelog: v9.18.1...v9.19.0rc1