Skip to content

Commit 652d89f

Browse files
committed
fix error for getting None value
Signed-off-by: 0oshowero0 <o0shower0o@outlook.com>
1 parent c4c4198 commit 652d89f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

transfer_queue/storage/clients/mooncake_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def _get_bytes_thread_worker(self, batch_keys: list[str], indexes: list[int]) ->
256256
if len(batch_results) != len(batch_keys):
257257
raise RuntimeError(f"get_batch returned {len(batch_results)} items, expected {len(batch_keys)}")
258258

259-
batch_results = [pickle.loads(result) for result in batch_results]
259+
batch_results = [pickle.loads(result) if result != b"" else None for result in batch_results]
260260
results.extend(batch_results)
261261

262262
return results, indexes

0 commit comments

Comments
 (0)