Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion bittensor_cli/src/bittensor/async_substrate_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,10 @@ async def _exit_with_timer(self):

async def shutdown(self):
async with self._lock:
self._receiving_task.cancel()
try:
self._receiving_task.cancel()
except AttributeError:
pass
try:
await self._receiving_task
except asyncio.CancelledError:
Expand Down