Skip to content

Fixed price extraction error handling and add null checks#136

Open
arnav-exe wants to merge 1 commit intodrawrowfly:masterfrom
arnav-exe:fix/asin-price-extraction
Open

Fixed price extraction error handling and add null checks#136
arnav-exe wants to merge 1 commit intodrawrowfly:masterfrom
arnav-exe:fix/asin-price-extraction

Conversation

@arnav-exe
Copy link

@arnav-exe arnav-exe commented Jan 26, 2026

Fixes the null pointer error when scraping product prices.
Added null checks in the price_format function and wrapped the first price extraction attempt in a try-catch like the other fallback attempts.
Also made the price regex more flexible to handle different Amazon price formats that were causing the match to return null.

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