mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix save-to-disk templates containing template expressions like {:'current_library_name()'} printing an exception. The exception doesn't appear to break anything, but it shouldn't be there.
This commit is contained in:
parent
d99570a2b6
commit
57da1f5320
@ -147,7 +147,7 @@ class Formatter(TemplateFormatter):
|
||||
'''
|
||||
|
||||
def get_value(self, key, args, kwargs):
|
||||
if key == '':
|
||||
if not isinstance(key, str) or key == '':
|
||||
return ''
|
||||
try:
|
||||
key = key.lower()
|
||||
|
Loading…
x
Reference in New Issue
Block a user