From 7b01c85c876fbffe60754092c9f6a7f05780ed0c Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 6 Apr 2024 19:41:51 -0400 Subject: [PATCH] fix bgg parse error report --- catalog/sites/bgg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalog/sites/bgg.py b/catalog/sites/bgg.py index 8e8f62de..1f87311e 100644 --- a/catalog/sites/bgg.py +++ b/catalog/sites/bgg.py @@ -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")