diff --git a/src/calibre/gui2/tag_browser/model.py b/src/calibre/gui2/tag_browser/model.py index 2f171da7e5..ba9d713902 100644 --- a/src/calibre/gui2/tag_browser/model.py +++ b/src/calibre/gui2/tag_browser/model.py @@ -144,7 +144,7 @@ class TagTreeItem: # {{{ if val_icon is None and TEMPLATE_ICON_INDICATOR in self.value_icons[category]: t = self.eval_formatter.safe_format(self.value_icons[category][TEMPLATE_ICON_INDICATOR][0], {'category': category, 'value': self.tag.original_name}, - 'VALUE_ICON_TEMPLATE_ERROR', None) + 'VALUE_ICON_TEMPLATE_ERROR', {}) if t: val_icon = (os.path.join('template_icons', t), False) else: diff --git a/src/calibre/srv/metadata.py b/src/calibre/srv/metadata.py index 4a91bec895..2be8f1eebd 100644 --- a/src/calibre/srv/metadata.py +++ b/src/calibre/srv/metadata.py @@ -193,7 +193,7 @@ def get_icon_for_node(node, parent, node_to_tag_map, tag_map, eval_formatter): if val_icon is None and TEMPLATE_ICON_INDICATOR in value_icons.get(category, {}): t = eval_formatter.safe_format( value_icons[category][TEMPLATE_ICON_INDICATOR][0], {'category': category, 'value': name_for_icon(node)}, - 'VALUE_ICON_TEMPLATE_ERROR', None) + 'VALUE_ICON_TEMPLATE_ERROR', {}) if t: # Use POSIX path separator val_icon = 'template_icons/' + t