bookstw: throw error when login wall
This commit is contained in:
parent
75a0b68119
commit
0d601a63dc
1 changed files with 3 additions and 1 deletions
|
@ -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)")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue