Skip to content

Commit 857cf78

Browse files
committed
update error
1 parent 12e118c commit 857cf78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapseclient/extensions/curator/schema_generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4871,7 +4871,7 @@ def __post_init__(self) -> None:
48714871
try:
48724872
re.compile(self.pattern)
48734873
except re.error as e:
4874-
raise ValueError(
4874+
raise SyntaxError(
48754875
f"The regex pattern '{self.pattern}' for property '{self.name}' is invalid."
48764876
) from e
48774877

0 commit comments

Comments
 (0)