diff --git a/src/calibre/utils/formatter.py b/src/calibre/utils/formatter.py index aca49ccb43..b1224de3da 100644 --- a/src/calibre/utils/formatter.py +++ b/src/calibre/utils/formatter.py @@ -339,6 +339,7 @@ class TemplateFormatter(string.Formatter): ########## a formatter that throws exceptions ############ def unsafe_format(self, fmt, kwargs, book): + self.column_name = self.template_cache = None self.kwargs = kwargs self.book = book self.composite_values = {}