Skip to content

fix: keep valid JSON-LD when a sibling script is malformed#255

Open
santhreal wants to merge 1 commit into
scrapinghub:masterfrom
santhreal:fix/jsonld-skip-bad-sibling-scripts-clean
Open

fix: keep valid JSON-LD when a sibling script is malformed#255
santhreal wants to merge 1 commit into
scrapinghub:masterfrom
santhreal:fix/jsonld-skip-bad-sibling-scripts-clean

Conversation

@santhreal

Copy link
Copy Markdown

JsonLdExtractor.extract_items hits JSONDecodeError when sibling script lost under errors=ignore. This PR fixes the regression with a focused test covering the case. held

Under errors=ignore/log, one bad application/ld+json script dropped all
siblings. Honor the errors policy per script inside JsonLdExtractor.
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