log message on not found author

This commit is contained in:
Ozzie Isaacs 2022-03-12 14:27:41 +01:00
parent 547ea93dc9
commit 3a0dacc6a6

View File

@ -790,6 +790,7 @@ class CalibreDB():
results = self.session.query(Authors).filter(Authors.sort == auth.lstrip().strip()).all() results = self.session.query(Authors).filter(Authors.sort == auth.lstrip().strip()).all()
# ToDo: How to handle not found author name # ToDo: How to handle not found author name
if not len(results): if not len(results):
log.error("Author {} not found to display name in right order".format(auth))
error = True error = True
break break
for r in results: for r in results: