@@ -132,10 +132,10 @@ def __init__(self, network: str = DEFAULT_NETWORK):
132
132
self .network = "custom"
133
133
else :
134
134
logging .info (
135
- f"Network not specified or not valid. Using default chain endpoint: < blue> { NETWORK_MAP [DEFAULTS .subtensor .network ]} < /blue> ."
135
+ f"Network not specified or not valid. Using default chain endpoint: [ blue] { NETWORK_MAP [DEFAULTS .subtensor .network ]} [ /blue] ."
136
136
)
137
137
logging .info (
138
- "You can set this for commands with the < blue> --network< /blue> flag, or by setting this in the config."
138
+ "You can set this for commands with the [ blue] --network[ /blue] flag, or by setting this in the config."
139
139
)
140
140
self .chain_endpoint = NETWORK_MAP [DEFAULTS .subtensor .network ]
141
141
self .network = DEFAULTS .subtensor .network
@@ -152,19 +152,19 @@ def __str__(self):
152
152
153
153
async def __aenter__ (self ):
154
154
logging .info (
155
- f"< magenta> Connecting to Substrate:< /magenta> < blue> { self } < /blue>< magenta> ...< /magenta> "
155
+ f"[ magenta] Connecting to Substrate:[ /magenta] [ blue] { self } [ /blue][ magenta] ...[ /magenta] "
156
156
)
157
157
try :
158
158
async with self .substrate :
159
159
return self
160
160
except TimeoutException :
161
161
logging .error (
162
- f"< red> Error< /red> : Timeout occurred connecting to substrate. Verify your chain and network settings: { self } "
162
+ f"[ red] Error[ /red] : Timeout occurred connecting to substrate. Verify your chain and network settings: { self } "
163
163
)
164
164
raise ConnectionError
165
165
except (ConnectionRefusedError , ssl .SSLError ) as error :
166
166
logging .error (
167
- f"< red> Error< /red> : Connection refused when connecting to substrate. "
167
+ f"[ red] Error[ /red] : Connection refused when connecting to substrate. "
168
168
f"Verify your chain and network settings: { self } . Error: { error } "
169
169
)
170
170
raise ConnectionError
@@ -533,7 +533,7 @@ async def get_transfer_fee(
533
533
)
534
534
except Exception as e :
535
535
logging .error (
536
- f":cross_mark: < red> Failed to get payment info: < /red> { e } "
536
+ f":cross_mark: [ red] Failed to get payment info: [ /red] { e } "
537
537
)
538
538
payment_info = {"partialFee" : int (2e7 )} # assume 0.02 Tao
539
539
@@ -1408,7 +1408,7 @@ async def register(
1408
1408
`True` if registration was successful, otherwise `False`.
1409
1409
"""
1410
1410
logging .info (
1411
- f"Registering on netuid < blue>0< /blue> on network: < blue> { self .network } < /blue> "
1411
+ f"Registering on netuid [ blue]0[ /blue] on network: [ blue] { self .network } [ /blue] "
1412
1412
)
1413
1413
1414
1414
# Check current recycle amount
@@ -1431,7 +1431,7 @@ async def register(
1431
1431
# Check balance is sufficient
1432
1432
if balance < current_recycle :
1433
1433
logging .error (
1434
- f"< red> Insufficient balance { balance } to register neuron. Current recycle is { current_recycle } TAO< /red> ."
1434
+ f"[ red] Insufficient balance { balance } to register neuron. Current recycle is { current_recycle } TAO[ /red] ."
1435
1435
)
1436
1436
return False
1437
1437
@@ -1509,7 +1509,7 @@ async def set_weights(
1509
1509
) > await self .weights_rate_limit (netuid ):
1510
1510
try :
1511
1511
logging .info (
1512
- f"Setting weights for subnet #< blue> { netuid } < /blue> . Attempt < blue> { retries + 1 } of { max_retries } < /blue> ."
1512
+ f"Setting weights for subnet #[ blue] { netuid } [ /blue] . Attempt [ blue] { retries + 1 } of { max_retries } [ /blue] ."
1513
1513
)
1514
1514
success , message = await set_weights_extrinsic (
1515
1515
subtensor = self ,
@@ -1547,7 +1547,7 @@ async def root_set_weights(
1547
1547
"""
1548
1548
netuids_ = np .array (netuids , dtype = np .int64 )
1549
1549
weights_ = np .array (weights , dtype = np .float32 )
1550
- logging .info (f"Setting weights in network: < blue> { self .network } < /blue> " )
1550
+ logging .info (f"Setting weights in network: [ blue] { self .network } [ /blue] " )
1551
1551
# Run the set weights operation.
1552
1552
return await set_root_weights_extrinsic (
1553
1553
subtensor = self ,
0 commit comments