mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
73f4803605
commit
7112fffba3
@ -45,7 +45,7 @@ class FamilyMap(dict):
|
|||||||
import cssutils
|
import cssutils
|
||||||
cssutils.log.setLevel(logging.ERROR)
|
cssutils.log.setLevel(logging.ERROR)
|
||||||
try:
|
try:
|
||||||
sheet = cssutils.parseString(css)
|
sheet = cssutils.parseString(css, validate=False)
|
||||||
except:
|
except:
|
||||||
return
|
return
|
||||||
for rule in sheet.cssRules:
|
for rule in sheet.cssRules:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user