mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -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
|
NameError, # thrown on OS X instead of SelectorSyntaxError
|
||||||
SelectorSyntaxError):
|
SelectorSyntaxError):
|
||||||
continue
|
continue
|
||||||
|
try:
|
||||||
matches = selector(tree)
|
matches = selector(tree)
|
||||||
|
except etree.XPathEvalError:
|
||||||
|
continue
|
||||||
|
|
||||||
if not matches:
|
if not matches:
|
||||||
ntext = capital_sel_pat.sub(lambda m: m.group().lower(), text)
|
ntext = capital_sel_pat.sub(lambda m: m.group().lower(), text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user