Skip to content

Commit

Permalink
improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mevljas committed Feb 16, 2025
1 parent bb82b2e commit f26554f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions services/extract_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ async def parse_page(

# Loop through all the listings.
for result in results:
item_id, data = await parse_result(result)
extracted_data[item_id] = data
try:
item_id, data = await parse_result(result)
extracted_data[item_id] = data
except Exception as e: # pylint: disable=broad-except
logger.warning("Error parsing result: %s", e)

# Check if there is a next page button.
more_pages = (
Expand Down

0 comments on commit f26554f

Please sign in to comment.