mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-12 10:53:12 -05:00
fix: Lint Python code with ruff (#3799)
This commit is contained in:
@@ -32,7 +32,7 @@ def make_dependable(cls):
|
||||
return cls(*args, **kwargs)
|
||||
except (ValidationError, RequestValidationError) as e:
|
||||
for error in e.errors():
|
||||
error["loc"] = ["query"] + list(error["loc"])
|
||||
error["loc"] = ["query", *list(error["loc"])]
|
||||
raise HTTPException(422, detail=[format_exception(ex) for ex in e.errors()]) from None
|
||||
|
||||
init_cls_and_handle_errors.__signature__ = signature(cls)
|
||||
|
||||
Reference in New Issue
Block a user