fix bgg parse error report
This commit is contained in:
parent
53d63c3911
commit
7b01c85c87
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class BoardGameGeek(AbstractSite):
|
|||
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")
|
||||
|
|
Loading…
Add table
Reference in a new issue