We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__aenter__
AsyncSubtensor
1 parent 4bebb26 commit 7045475Copy full SHA for 7045475
bittensor/core/async_subtensor.py
@@ -173,8 +173,8 @@ async def __aenter__(self):
173
f"[magenta]Connecting to Substrate:[/magenta] [blue]{self}[/blue][magenta]...[/magenta]"
174
)
175
try:
176
- async with self.substrate:
177
- return self
+ await self.substrate.initialize()
+ return self
178
except TimeoutError:
179
logging.error(
180
f"[red]Error[/red]: Timeout occurred connecting to substrate."
0 commit comments