From 3a0dacc6a69d3d7edf4abc362d1052f55b0330a3 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sat, 12 Mar 2022 14:27:41 +0100 Subject: [PATCH] log message on not found author --- cps/db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cps/db.py b/cps/db.py index a3b93d89..caf0ee6e 100644 --- a/cps/db.py +++ b/cps/db.py @@ -788,8 +788,9 @@ class CalibreDB(): error = False for auth in sort_authors: 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): + log.error("Author {} not found to display name in right order".format(auth)) error = True break for r in results: