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

make ruff happy again

parent ac56a875
No related branches found
No related tags found
1 merge request!188upgrade to orchestrato-core v2
Pipeline #86670 passed
...@@ -230,7 +230,8 @@ class BaseSiteValidatorModel(BaseModel): ...@@ -230,7 +230,8 @@ class BaseSiteValidatorModel(BaseModel):
def field_must_be_unique(cls, value: str | int, info: ValidationInfo) -> str | int: def field_must_be_unique(cls, value: str | int, info: ValidationInfo) -> str | int:
"""Validate that a field is unique.""" """Validate that a field is unique."""
if not info.field_name: 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) 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.
Finish editing this message first!
Please register or to comment