Don't call formatting func on None values

kivy_mainline_and_py3.8
Tyler Goodlet 2018-05-08 23:50:24 -04:00
parent 3646fb4a23
commit fd1fe0816e
1 changed files with 2 additions and 1 deletions

View File

@ -414,7 +414,8 @@ def format_quote(
# convert values to a displayble format using available formatting func
if isinstance(new_key, tuple):
new_key, func = new_key
display_value = func(value)
display_value = func(value) if value else value
new[new_key] = value
displayable[new_key] = display_value