Skip to content

Fix KeyError when using shippable=True#5

Merged
etienne-hd merged 2 commits intoetienne-hd:mainfrom
Soopic:main
Oct 11, 2025
Merged

Fix KeyError when using shippable=True#5
etienne-hd merged 2 commits intoetienne-hd:mainfrom
Soopic:main

Conversation

@Soopic
Copy link
Contributor

@Soopic Soopic commented Oct 11, 2025

Using shippable=True in client.search() was causing a KeyError:

KeyError: 'locations'

This happened because the code tried to access
payload["filters"]["locations"]["shippable"] instead of
payload["filters"]["location"]["shippable"].

This PR fixes the key.
Now the shippable filter works without breaking anything else.

@etienne-hd etienne-hd merged commit 8a74cde into etienne-hd:main Oct 11, 2025
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.

2 participants