Skip to content

Commit

Permalink
Fix issue with none results
Browse files Browse the repository at this point in the history
  • Loading branch information
jlowin committed Sep 3, 2024
1 parent e458363 commit 6f81297
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controlflow/tasks/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,10 @@ def validate_result(self, raw_result: Any) -> T:
else:
result = self.result_type(raw_result)

# the raw result is None
else:
result = raw_result

# Convert DataFrame schema back into pd.DataFrame object
# if result_type == PandasDataFrame:
# import pandas as pd
Expand Down

0 comments on commit 6f81297

Please sign in to comment.