Skip to content

Commit 412d9b2

Browse files
marcosfeltclaude
andcommitted
Fix bare raise statement in get_prop_value
Changed bare 'raise' to 'raise ValueError' with descriptive message when property count is not exactly 1. This fixes RuntimeError in tests. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 75ebc1b commit 412d9b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

moleculeresolver/moleculeresolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6491,7 +6491,7 @@ def get_prop_value(
64916491
}
64926492
else:
64936493
if len(props_found) != 1:
6494-
raise
6494+
raise ValueError(f"Expected exactly 1 property, found {len(props_found)}")
64956495
prop_vals = list(props_found[0].values())
64966496

64976497
return conversion_funtion(prop_vals[0])

0 commit comments

Comments
 (0)