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:
Kovid Goyal 2014-12-26 09:14:48 +05:30
parent 9106c49b49
commit eedd0a6dfb

View File

@ -206,7 +206,7 @@ class Saver(QObject):
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: