Skip to content

Commit 8cca5fc

Browse files
committed
fix: error back in
1 parent 0043201 commit 8cca5fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py_hamt/store_httpx.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ async def save(self, data: bytes, codec: ContentAddressedStore.CodecInput) -> CI
390390
except httpx.HTTPStatusError:
391391
# Re-raise non-timeout HTTP errors immediately
392392
raise
393+
raise RuntimeError("Exited the retry loop unexpectedly.") # pragma: no cover
393394

394395
async def load(self, id: IPLDKind) -> bytes:
395396
cid = cast(CID, id)
@@ -425,3 +426,4 @@ async def load(self, id: IPLDKind) -> bytes:
425426
except httpx.HTTPStatusError:
426427
# Re-raise non-timeout HTTP errors immediately
427428
raise
429+
raise RuntimeError("Exited the retry loop unexpectedly.") # pragma: no cover

0 commit comments

Comments
 (0)