Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloprobst committed Nov 6, 2024
1 parent d41aaf0 commit e2a88fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyperon_das/tokenizers/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def from_tokens(tokens: list[str], cursor: int = 0) -> tuple[int, "OrOperator"]:
cursor, operand = ElementBuilder.from_tokens(tokens, cursor)
operator.operands.append(operand)
return cursor, operator
raise ValueError(f"Unsupported sequence of tokens: {tokens[cursor-1:]}")
raise ValueError(f"Unsupported sequence of tokens: {tokens[cursor:]}")


@dataclasses.dataclass
Expand Down

0 comments on commit e2a88fd

Please sign in to comment.