From 715f6d9b81264feddf17c9271bbcc4fc5a7f57e4 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Mon, 10 Oct 2022 17:14:03 +0100 Subject: [PATCH] Fix failing test. --- src/calibre/utils/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/formatter.py b/src/calibre/utils/formatter.py index 7aaab09fb3..c052df3a9f 100644 --- a/src/calibre/utils/formatter.py +++ b/src/calibre/utils/formatter.py @@ -1789,7 +1789,7 @@ class TemplateFormatter(string.Formatter): traceback.print_exc() if column_name: prints('Error evaluating column named:', column_name) - ans = str(e) + ans = error_value + ' ' + error_message(e) return ans finally: self.restore_state(state)