Skip to content

Commit

Permalink
shards should never be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Nov 7, 2023
1 parent 3f840d7 commit 1b26ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/shuffle/_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async def _process(self, id: str, shards: list[Any]) -> None:

frames: Iterable[bytes | bytearray | memoryview]

if not shards or isinstance(shards[0], bytes):
if isinstance(shards[0], bytes):
# Manually serialized dataframes
frames = shards
else:
Expand Down

0 comments on commit 1b26ec6

Please sign in to comment.