Page MenuHomeSoftware Heritage

D4235.diff
No OneTemporary

D4235.diff

diff --git a/swh/fuse/fs/artifact.py b/swh/fuse/fs/artifact.py
--- a/swh/fuse/fs/artifact.py
+++ b/swh/fuse/fs/artifact.py
@@ -39,7 +39,8 @@
async def get_content(self) -> bytes:
data = await self.fuse.get_blob(self.swhid)
- self.prefetch["length"] = len(data)
+ if not self.prefetch:
+ self.prefetch = {"length": len(data)}
return data
async def size(self) -> int:

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 30, 3:35 PM (1 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216396

Event Timeline