Skip to content

BTSDK: removed exit sys call for ConnectionRefusedError in _get_substrate#2288

Merged
basfroman merged 3 commits intobtsdkfrom
fix/roman/removed-exit-sys-call-for-ConnectionRefusedError-in-_get_substrate
Sep 6, 2024
Merged

BTSDK: removed exit sys call for ConnectionRefusedError in _get_substrate#2288
basfroman merged 3 commits intobtsdkfrom
fix/roman/removed-exit-sys-call-for-ConnectionRefusedError-in-_get_substrate

Conversation

@basfroman
Copy link
Collaborator

No description provided.

@basfroman basfroman requested a review from a team September 6, 2024 01:56
@basfroman basfroman self-assigned this Sep 6, 2024
@basfroman basfroman added bug Something isn't working bittensor labels Sep 6, 2024
Copy link
Contributor

@thewhaleking thewhaleking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we throw an Exception?

@basfroman
Copy link
Collaborator Author

Shouldn't we throw an Exception?

I don't think so. Just warning

@thewhaleking
Copy link
Contributor

Shouldn't we throw an Exception?

I don't think so. Just warning

Doesn't that just pass the buck down the line, and will bring a new exception when a request is attempted on a closed connection?

@basfroman
Copy link
Collaborator Author

Doesn't that just pass the buck down the line, and will bring a new exception when a request is attempted on a closed connection?

No, if the connection data was passed correctly, then even with a missing connection, the reconnection logic will create a new connection and set the timeout again. Otherwise, the user will receive a warning again.

@basfroman basfroman requested a review from a team September 6, 2024 16:30
@basfroman basfroman merged commit 7ad2ca8 into btsdk Sep 6, 2024
@basfroman basfroman deleted the fix/roman/removed-exit-sys-call-for-ConnectionRefusedError-in-_get_substrate branch September 6, 2024 16:46
@ibraheem-abe ibraheem-abe mentioned this pull request Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bittensor bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants