fix(provider): scan rejects non-dict sort with InvalidArguments, never AttributeError

heid-bug-hunt panel (Gróa + Hulda, confirmed-from-code) caught that a truthy
non-dict `sort` (e.g. sort="updated_at" or sort=["updated_at"]) reached
`(sort or {}).get(...)` and crashed with AttributeError instead of the
InvalidArguments PRE-003 promises for malformed caller-controlled input. Add an
isinstance guard before field extraction. Test covers str/list/int sort values.
This commit is contained in:
vh
2026-07-15 08:39:30 -07:00
parent 22e7a1b0e7
commit 25ccb5c75b
4 changed files with 12 additions and 2 deletions
Generated
+1 -1
View File
@@ -1052,7 +1052,7 @@ wheels = [
[[package]]
name = "ratatoskr"
version = "0.20.12"
version = "0.20.13"
source = { editable = "." }
dependencies = [
{ name = "httpx" },