From 9fc02f67c2f27de96fa5332d2b3a94d505eaecf6 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Fri, 27 Sep 2019 15:30:39 +0200 Subject: [PATCH] Debug output for lcase --- cps/helper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cps/helper.py b/cps/helper.py index e909086e..62dda720 100644 --- a/cps/helper.py +++ b/cps/helper.py @@ -785,4 +785,7 @@ def get_download_link(book_id, book_format): ############### Database Helper functions def lcase(s): - return unidecode.unidecode(s.lower()) if use_unidecode else s.lower() + try: + return unidecode.unidecode(s.lower()) + except Exception as e: + log.exception(e)