Skip to content

Commit 3a37f4b

Browse files
authored
fix lambda test 🛠
1 parent 707efb7 commit 3a37f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adaptive/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def __init__(
495495
def goal(_):
496496
return False
497497

498-
if executor is None:
498+
if executor is None and not inspect.iscoroutinefunction(learner.function):
499499
try:
500500
pickle.dumps(learner.function)
501501
except pickle.PicklingError:

0 commit comments

Comments
 (0)