Skip to content

Commit 28f2343

Browse files
committed
fix.
1 parent 37b59dc commit 28f2343

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pytask_parallel/backends.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def deserialize_and_run_with_cloudpickle(
1717
) -> Any:
1818
"""Deserialize and execute a function and keyword arguments."""
1919
deserialized_kwargs_import_path = cloudpickle.loads(kwargs_import_path)
20-
import_path(**deserialized_kwargs_import_path)
20+
if deserialized_kwargs_import_path:
21+
import_path(**deserialized_kwargs_import_path)
2122

2223
deserialized_fn = cloudpickle.loads(fn)
2324
deserialized_kwargs = cloudpickle.loads(kwargs)

0 commit comments

Comments
 (0)