Skip to content

Commit 68e80e4

Browse files
committed
chore: solve comments
1 parent d7355f0 commit 68e80e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/backend/api/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def validate_kubernetes_uid(value):
191191
r"(^[a-z0-9]([-a-z0-9]{1,61}[a-z0-9])?$)|(^arn:aws(-cn|-us-gov|-iso|-iso-b)?:[a-zA-Z0-9\-]+:([a-z]{2}-[a-z]+-\d{1})?:(\d{12})?:[a-zA-Z0-9\-_\/:\.\*]+(:\d+)?$)",
192192
value,
193193
):
194-
raise ValueError(
194+
raise ModelValidationError(
195195
"The value must either be a valid Kubernetes UID (up to 63 characters, "
196196
"starting and ending with a lowercase letter or number, containing only "
197197
"lowercase alphanumeric characters and hyphens) or a valid EKS ARN."

0 commit comments

Comments
 (0)