diff --git a/bittensor/subtensor.py b/bittensor/subtensor.py index c4e70deae5..2c8f1d75c6 100644 --- a/bittensor/subtensor.py +++ b/bittensor/subtensor.py @@ -26,7 +26,6 @@ import argparse import copy import socket -import sys import time from typing import List, Dict, Union, Optional, Tuple, TypedDict, Any @@ -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)