Skip to content

fix(scraper): skip null docs in WebBaseLoaderScraper - #2005

Open
Bartok9 wants to merge 1 commit into
assafelovic:mainfrom
Bartok9:fix/web-base-loader-docs-guard
Open

fix(scraper): skip null docs in WebBaseLoaderScraper#2005
Bartok9 wants to merge 1 commit into
assafelovic:mainfrom
Bartok9:fix/web-base-loader-docs-guard

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

WebBaseLoaderScraper skips None loader docs and entries without page_content instead of throwing mid-concat.

Motivation

LangChain loaders can return sparse document lists; one bad entry emptied the whole scrape via exception path.

Real behavior proof

python3 -m pytest tests/test_web_base_loader_docs_guard.py -q
# 1 passed

Test plan

  • mixed None/missing/valid page_content

@Bartok9
Bartok9 force-pushed the fix/web-base-loader-docs-guard branch from ee8d66b to 5d84d2f Compare August 2, 2026 16:28
@Bartok9
Bartok9 changed the base branch from master to main August 2, 2026 16:30
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