Skip to content

Commit

Permalink
removed exit sys call for ConnectionRefusedError in _get_substrate (#…
Browse files Browse the repository at this point in the history
…2287)

* removed exit sys call for ConnectionRefusedError in _get_substrate

* removed unnecessary sys import

* ruff format fix
  • Loading branch information
garrett-opentensor authored and ibraheem-opentensor committed Sep 6, 2024
1 parent 166481f commit 1c08a9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bittensor/subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import argparse
import copy
import socket
import sys
import time
from typing import List, Dict, Union, Optional, Tuple, TypedDict, Any

Expand Down Expand Up @@ -293,7 +292,7 @@ def _get_substrate(self):
"You can check if you have connectivity by running this command: nc -vz localhost "
f"{self.chain_endpoint.split(':')[2]}"
)
sys.exit(1)
return

try:
self.substrate.websocket.settimeout(self._connection_timeout)
Expand Down

0 comments on commit 1c08a9d

Please sign in to comment.