mirror of
https://github.com/janeczku/calibre-web
synced 2025-10-25 20:37:41 +00:00
log message on not found author
This commit is contained in:
@@ -788,8 +788,9 @@ class CalibreDB():
|
|||||||
error = False
|
error = False
|
||||||
for auth in sort_authors:
|
for auth in sort_authors:
|
||||||
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 authorname
|
# 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:
|
||||||
|
|||||||
Reference in New Issue
Block a user