From 296f76fad0b204896256d7ddcf118f039d8308e7 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 23 Dec 2024 11:30:23 -0800 Subject: [PATCH] improve handler --- bittensor/core/subtensor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bittensor/core/subtensor.py b/bittensor/core/subtensor.py index b0aa0e15c..f9705415d 100644 --- a/bittensor/core/subtensor.py +++ b/bittensor/core/subtensor.py @@ -263,9 +263,10 @@ def _get_substrate(self, force: bool = False): except InvalidStatus as error: logging.critical( - f"[red]You have reached the limit of simultaneous connections to the server.[/red]" + f"Error [red]'{error.response.reason_phrase}'[/red] with status code [red]{error.response.status_code}[/red]." ) - raise InvalidStatus(error.response) from error + logging.debug(f"Server response is '{error.response}'.") + raise @staticmethod def config() -> "Config":