mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8af9c474d6
commit
882dc07eec
@ -557,7 +557,7 @@ def check_if_css_needs_modification(extra_css: str) -> tuple[bool, bool]:
|
|||||||
try:
|
try:
|
||||||
sheet = css_parser().parseString(extra_css)
|
sheet = css_parser().parseString(extra_css)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
sheet = None
|
||||||
else:
|
else:
|
||||||
for rule in sheet.cssRules:
|
for rule in sheet.cssRules:
|
||||||
if rule.type == CSSRule.PAGE_RULE:
|
if rule.type == CSSRule.PAGE_RULE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user