Skip to content

Commit

Permalink
Correctly raise an error in _convert_index
Browse files Browse the repository at this point in the history
  • Loading branch information
MarJMue committed Jul 19, 2024
1 parent 3e56873 commit 1dc18ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elli/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _convert_index(index: str) -> int:
if index in ["s", "R"]:
return 1

return ValueError("Wrong index given for variable.")
raise ValueError("Wrong index given for variable.")


class Result:
Expand Down

0 comments on commit 1dc18ab

Please sign in to comment.