Skip to content

Commit

Permalink
Log parsing errors but no longer fail on individual products
Browse files Browse the repository at this point in the history
  • Loading branch information
Javex committed Nov 3, 2024
1 parent 4593ac9 commit df1e6a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hotprices_au/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ def get_canoncial_for(store, raw_items, category_map, today):
canonical_item = store_module.get_canonical(raw_item, today)
except Exception:
logger.exception(f"Unable to process store '{store}' item: {raw_item}")
import pprint

pprint.pprint(raw_item)
raise
# import pprint
# pprint.pprint(raw_item)
# Skip parsing errors and move on to next item
# raise
if canonical_item is None:
continue
canonical_item["store"] = store
Expand Down

0 comments on commit df1e6a5

Please sign in to comment.