Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Commit d88ad13

Browse files
committed
fix: address PR comments
1 parent 1f742fe commit d88ad13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timefold-solver-python-core/src/main/python/score/_score_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def constraint_id(self) -> str:
5757
def parse_id(constraint_id: str):
5858
slash_index = constraint_id.rfind('/')
5959
if slash_index == -1:
60-
raise IndexError(
60+
raise ValueError(
6161
f'The constraint_id {constraint_id} is invalid as it does not contain a package separator \'/\'.')
6262
package_name = constraint_id[:slash_index]
6363
constraint_name = constraint_id[slash_index + 1:]

0 commit comments

Comments
 (0)