Skip to content

Commit 1972840

Browse files
authored
Merge pull request #253 from opentensor/fix/thewhaleking/dont-cache-exceptions
2 parents 715194b + bc6fdd8 commit 1972840

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/check-sdk-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ jobs:
269269
270270
- name: Install Bittensor SDK dependencies
271271
working-directory: ${{ github.workspace }}/bittensor
272-
run: uv pip install --system '.[dev]'
272+
run: uv pip install --system '.[dev]' torch
273273

274274
- name: Clone async-substrate-interface repo
275275
run: git clone https://github.com/opentensor/async-substrate-interface.git

async_substrate_interface/utils/cache.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ async def __call__(self, *args: Any, **kwargs: Any) -> Any:
321321
future.set_result(result)
322322
return result
323323
except Exception as e:
324-
future.set_exception(e)
324+
self._inflight.pop(key, None)
325+
future.cancel()
325326
raise
326327
finally:
327328
self._inflight.pop(key, None)

0 commit comments

Comments
 (0)