Skip to content

fix(brave): skip non-dict web.results rows - #1999

Open
Bartok9 wants to merge 1 commit into
assafelovic:mainfrom
Bartok9:fix/brave-skip-non-dict-results
Open

fix(brave): skip non-dict web.results rows#1999
Bartok9 wants to merge 1 commit into
assafelovic:mainfrom
Bartok9:fix/brave-skip-non-dict-results

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Skip non-dict Brave web.results rows and reject non-list payloads.

Motivation

Calling .get on a non-dict result aborts the whole Brave search.

Verification

python3 -m pytest tests/test_brave_retriever_malformed.py -q
2 passed

@Bartok9
Bartok9 force-pushed the fix/brave-skip-non-dict-results branch from 2f1b2d2 to 8764bb8 Compare July 27, 2026 17:05
@Bartok9
Bartok9 changed the base branch from master to main July 27, 2026 17:08
@Bartok9
Bartok9 force-pushed the fix/brave-skip-non-dict-results branch from 8764bb8 to 0d35d5c Compare July 27, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant