Skip to content

Commit

Permalink
fix bgg parse error report
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Apr 7, 2024
1 parent 53d63c3 commit 7b01c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog/sites/bgg.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def scrape(self):
content = BasicDownloader(api_url).download().xml()
items = list(content.xpath("/items/item")) # type: ignore
if not len(items):
raise ParseError("boardgame not found", field="id")
raise ParseError(scraper=self, field="id")
item = items[0]
title = self.query_str(item, "name[@type='primary']/@value")
other_title = self.query_list(item, "name[@type='alternate']/@value")
Expand Down

0 comments on commit 7b01c85

Please sign in to comment.