bookstw: throw error when login wall

This commit is contained in:
Your Name 2023-05-14 10:14:02 -04:00 committed by Henri Dickson
parent 75a0b68119
commit 0d601a63dc

View file

@ -35,7 +35,9 @@ class BooksTW(AbstractSite):
# )
# eisbn = isbn_elem[0].strip().split("", 1)[1].strip() if isbn_elem else None
title = content.xpath("string(//h1)") or f"Unknown Title {self.id_value}"
title = content.xpath("string(//h1)")
if not title:
raise ParseError(self, "title")
subtitle = None
orig_title = content.xpath("string(//h1/following-sibling::h2)")