mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 13:33:12 +02:00
Conversion: Fix a regression in 2.21 that caused conversion to fail for books with invalid pseudo-class CSS selectors. Fixes #1432267 [Private bug](https://bugs.launchpad.net/calibre/+bug/1432267)
This commit is contained in:
parent
e93e8f675e
commit
93cfaa69a8
1 changed files with 2 additions and 2 deletions
|
|
@ -180,9 +180,9 @@ def __init__(self, tree, path, oeb, opts, profile=None,
|
|||
for _, _, cssdict, text, _ in rules:
|
||||
fl = pseudo_pat.search(text)
|
||||
try:
|
||||
matches = select(text)
|
||||
matches = tuple(select(text))
|
||||
except SelectorError as err:
|
||||
self.log.error('Ignoring CSS rule with invalid selector: %r (%s)' % (text, as_unicode(err)))
|
||||
self.logger.error('Ignoring CSS rule with invalid selector: %r (%s)' % (text, as_unicode(err)))
|
||||
continue
|
||||
|
||||
if fl is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue