From a6a0de8ff436758555a7dc92a189581094256a6b Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Tue, 5 Oct 2010 12:22:21 +0100 Subject: [PATCH] Don't bother printing None plugboards in save-to-disk --- src/calibre/library/save_to_disk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/library/save_to_disk.py b/src/calibre/library/save_to_disk.py index d37c92f595..94f9dbd229 100644 --- a/src/calibre/library/save_to_disk.py +++ b/src/calibre/library/save_to_disk.py @@ -269,7 +269,8 @@ def save_book_to_disk(id, db, root, opts, length): else: cpb = None # Leave this here for a while, in case problems arise. - prints('Save-to-disk using plugboard:', fmt, cpb) + if cpb is not None: + prints('Save-to-disk using plugboard:', fmt, cpb) data = db.format(id, fmt, index_is_id=True) if data is None: continue