Bugfix after merge

Bugfix generate Metadata backup
This commit is contained in:
Ozzie Isaacs
2023-02-28 19:48:53 +01:00
parent 3cf778b591
commit 64e9b13311
5 changed files with 1634 additions and 1677 deletions

View File

@@ -89,7 +89,6 @@ class TaskBackupMetadata(CalibreTask):
self.open_metadata(book, custom_columns)
else:
self.log.error("Book {} not found in database".format(backup.book))
# self._handleError("Book {} not found in database".format(backup.book))
i += 1
self.progress = (1.0 / count) * i
self._handleSuccess()
@@ -230,9 +229,8 @@ class TaskBackupMetadata(CalibreTask):
try:
with open(book_metadata_filepath, 'wb') as f:
doc.write(f, xml_declaration=True, encoding='utf-8', pretty_print=True)
except Exception:
# ToDo: Folder not writeable error
pass
except Exception as ex:
raise Exception('Writing Metadata failed with error: {} '.format(ex))
@property
def name(self):