Don't bother printing None plugboards in save-to-disk

This commit is contained in:
Charles Haley 2010-10-05 12:22:21 +01:00
parent effa69add2
commit a6a0de8ff4

View File

@ -269,7 +269,8 @@ def save_book_to_disk(id, db, root, opts, length):
else: else:
cpb = None cpb = None
# Leave this here for a while, in case problems arise. # 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) data = db.format(id, fmt, index_is_id=True)
if data is None: if data is None:
continue continue