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.
1 parent b959fe3 commit 6d975c3Copy full SHA for 6d975c3
bittensor_cli/cli.py
@@ -1150,7 +1150,8 @@ async def _run():
1150
exit_early is True
1151
): # temporarily to handle multiple run commands in one session
1152
try:
1153
- await self.subtensor.substrate.close()
+ if self.subtensor:
1154
+ await self.subtensor.substrate.close()
1155
raise typer.Exit()
1156
except Exception as e: # ensures we always exit cleanly
1157
if not isinstance(e, (typer.Exit, RuntimeError)):
0 commit comments