Skip to content

Commit 67da7c3

Browse files
authored
fix: return the value not the future when a closure is called fro jinja or python (#1208)
Signed-off-by: Louis Mandel <[email protected]>
1 parent 1b2cdf9 commit 67da7c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pdl/pdl_interpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def __call__(self, *args, **kwargs):
233233
result, _, _ = execute_call(
234234
state, current_context, self, kwargs, self.pdl__location
235235
)
236-
return result
236+
return result.result()
237237

238238

239239
ClosureBlock.model_rebuild()

0 commit comments

Comments
 (0)