mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-23 09:23:06 +02:00
Fix regression that broke error reporting for save to disk for books that contain no formats. Fixes #1405674 [Save to disk, ValueError too many values to unpack](https://bugs.launchpad.net/calibre/+bug/1405674)
This commit is contained in:
parent
9106c49b49
commit
eedd0a6dfb
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ def write_book(self, book_id, mi, components, fmts):
|
|||
asked_formats = {x.lower().strip() for x in self.opts.formats.split(',')}
|
||||
fmts = asked_formats.intersection(fmts)
|
||||
if not fmts:
|
||||
self.errors[book_id] = ('critical', _('Requested formats not available'))
|
||||
self.errors[book_id].append(('critical', _('Requested formats not available')))
|
||||
return
|
||||
|
||||
if not fmts and not self.opts.write_opf and not self.opts.save_cover:
|
||||
|
|
|
|||
Loading…
Reference in a new issue