use alternative for all falsey values in format strings

… and not just None (#525)

It would be better to consistently use None for all non-existent
fields and/or fields without a valid value, but this is a good
enough workaround for now.
This commit is contained in:
Mike Fährmann
2020-09-19 22:02:47 +02:00
parent c43b3894be
commit 65744a7a31
2 changed files with 2 additions and 2 deletions

View File

@@ -646,7 +646,7 @@ class Formatter():
obj = kwdict[key]
for func in funcs:
obj = func(obj)
if obj is not None:
if obj:
break
except Exception:
pass