sync lib-not-dr

This commit is contained in:
shenjack 2023-10-24 22:10:57 +08:00
parent 354a3c8a0d
commit 7e125e8683
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -60,7 +60,7 @@ class BaseFormatter(Options):
try:
return template.substitute(**info)
except KeyError:
except (KeyError, ValueError):
return template.safe_substitute(**info)
def _format(self, message: FormattingMessage) -> FormattingMessage: