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:
Charles Haley 2024-03-03 14:12:33 +00:00
parent d99570a2b6
commit 57da1f5320

View File

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