mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Fix #7919 (Conversion error)
This commit is contained in:
parent
4b7705fbbe
commit
8e787097ac
@ -205,7 +205,10 @@ class Stylizer(object):
|
||||
NameError, # thrown on OS X instead of SelectorSyntaxError
|
||||
SelectorSyntaxError):
|
||||
continue
|
||||
matches = selector(tree)
|
||||
try:
|
||||
matches = selector(tree)
|
||||
except etree.XPathEvalError:
|
||||
continue
|
||||
|
||||
if not matches:
|
||||
ntext = capital_sel_pat.sub(lambda m: m.group().lower(), text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user