Fix error when running calibredb backup_metadata on a library that contains book records with no path information

This commit is contained in:
Kovid Goyal 2015-03-12 17:51:08 +05:30
parent 1b020158c5
commit 94294b62e2

View File

@ -1172,7 +1172,7 @@ class BackupProgress(object):
else:
self.count += 1
prints(u'%.1f%% %s - %s'%((self.count*100)/float(self.total),
book_id, mi.title))
book_id, getattr(mi, 'title', 'Unknown')))
def command_backup_metadata(args, dbpath):
parser = backup_metadata_option_parser()