Fix #1807266 [create_from_xpath IOError: [Errno 5] Input/output error](https://bugs.launchpad.net/calibre/+bug/1807266)

This commit is contained in:
Kovid Goyal 2018-12-07 08:28:03 +05:30
parent 320487b8df
commit 34746bbd94
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -934,7 +934,6 @@ class TOCView(QWidget): # {{{
def create_from_xpath(self, xpaths, remove_duplicates=True):
toc = from_xpaths(self.ebook, xpaths)
print(1111111, remove_duplicates)
if len(toc) == 0:
return error_dialog(self, _('No items found'),
_('No items were found that could be added to the Table of Contents.'), show=True)