Better error output for "empty" Author sort not working

Update bleach requirement
This commit is contained in:
Ozzie Isaacs
2025-03-28 17:23:45 +01:00
parent a215b73e39
commit 854a7d020d
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -901,7 +901,8 @@ class CalibreDB:
results = self.session.query(Authors).filter(Authors.sort == auth).all()
# ToDo: How to handle not found author name
if not len(results):
log.error("Author {} not found to display name in right order".format(auth))
book_id = entry.id if isinstance(entry, Books) else entry[0].id
log.error("Author '{}' of book {} not found to display name in right order".format(auth, book_id))
# error = True
break
for r in results: