Skip to content
Snippets Groups Projects
Commit 201872fd authored by Thibault Allançon's avatar Thibault Allançon
Browse files

fs: artifact: fix Content uninitialized field

parent 7e0c9de5
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,8 @@ class Content(ArtifactEntry):
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment