Merge branch 'fix-tag-brower-attribute-error' of https://github.com/un-pogaz/calibre

This commit is contained in:
Kovid Goyal 2025-01-17 19:48:10 +05:30
commit fdff266a5d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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