Skip to content
Snippets Groups Projects
Commit 11234ba7 authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

make ruff happy again

parent ac56a875
Branches
Tags
1 merge request!188upgrade to orchestrato-core v2
Pipeline #86670 passed
......@@ -230,7 +230,8 @@ class BaseSiteValidatorModel(BaseModel):
def field_must_be_unique(cls, value: str | int, info: ValidationInfo) -> str | int:
"""Validate that a field is unique."""
if not info.field_name:
raise ValueError("Field name is required")
msg = "Field name must be provided."
raise ValueError(msg)
validate_site_fields_is_unique(info.field_name, value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment