Skip to content

Commit

Permalink
improve handler
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-opentensor committed Dec 23, 2024
1 parent 4008488 commit 296f76f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bittensor/core/subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 296f76f

Please sign in to comment.