From eedd0a6dfb76d444740c3e5b166b08b88269ed1c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 26 Dec 2014 09:14:48 +0530 Subject: [PATCH] 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) --- src/calibre/gui2/save.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/save.py b/src/calibre/gui2/save.py index 44a47cee64..5536ee5b6d 100644 --- a/src/calibre/gui2/save.py +++ b/src/calibre/gui2/save.py @@ -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: