Skip to content

Commit

Permalink
protect against exception when non-traversed list is different length
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray authored Dec 16, 2024
1 parent 78428ab commit d0f41d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dask_awkward/lib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2163,7 +2163,7 @@ def map_partitions(

if len(kwargs) == 0:
non_traversed_deps, _ = unpack_collections(*args, traverse=False)
if all(
if len(flat_deps) == len(non_traversed_deps) and all(
id(traversed_dep) == id(non_traversed_dep)
for traversed_dep, non_traversed_dep in zip(flat_deps, non_traversed_deps)
):
Expand Down

0 comments on commit d0f41d1

Please sign in to comment.