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.
The historical idea of retry was that regardless of any Errors, it repeated its attempts 3 times.
Now the SDK code is much more functional and cleaner. I catch different errors at different places.
ConnectionRefusedError
error is caught during the initialization of the Subtensor@networking.ensure_connected
Also, an important point is that SDK is a Python package that is intended for use in scripts. It is not an interactive package. All responsibility for processing the results is in the hands of the user. This should be considered as a more flexible way then in btcli. The user will be able to regulate the retries themselves if they want. If the data was wrong during the request and the response is not successful, then it is easier to process and make a request based on other data than to make 3 calls and then change the data.