mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
5949db54d6
commit
edda5bd29d
@ -52,7 +52,7 @@ def apply_keep_only(browser, keep_only):
|
||||
for selector in keep_only:
|
||||
keep.extend(x for x in mf.findAllElements(selector))
|
||||
if not keep:
|
||||
browser.log.error('Failed to find any elements matching the keep_only selectors: %r' % keep_only)
|
||||
browser.log.error('Failed to find any elements matching the keep_only selectors: %r' % list(keep_only))
|
||||
return
|
||||
for elem in keep:
|
||||
body.appendInside(elem)
|
||||
|
Loading…
x
Reference in New Issue
Block a user