Skip to content

Commit a5ce7b5

Browse files
authored
fix: filter out none coroutines (#3060)
1 parent 5a0647d commit a5ce7b5

File tree

1 file changed

+3
-1
lines changed
  • warehouse/oso_dagster/utils

1 file changed

+3
-1
lines changed

warehouse/oso_dagster/utils/dlt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ async def _wrapper(
8383
log = context.log if context else logger
8484

8585
tasks: List[Coroutine[Any, Any, R]] = [
86-
task() for task in fn(*args, **kwargs)
86+
coro
87+
for coro in (task() for task in fn(*args, **kwargs))
88+
if coro is not None
8789
]
8890
batches_list = list(batched(tasks, config.chunk_size))
8991

0 commit comments

Comments
 (0)