Skip to content

Commit

Permalink
add a check for invalid output in eval
Browse files Browse the repository at this point in the history
  • Loading branch information
chanind committed May 15, 2022
1 parent 81a829a commit 0e9eb88
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def split_output_fe_spans(output: str) -> list[tuple[str, str]]:
for span in output.split("|"):
parts = span.strip().split("=")
if len(parts) == 1:
outputs.append((parts, "XXX"))
outputs.append((parts[0].strip(), parts[1].strip()))
outputs.append((parts[0].strip(), "XXX"))
else:
outputs.append((parts[0].strip(), parts[1].strip()))
return outputs

0 comments on commit 0e9eb88

Please sign in to comment.