sync lib-not-dr
This commit is contained in:
parent
354a3c8a0d
commit
7e125e8683
@ -60,7 +60,7 @@ class BaseFormatter(Options):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
return template.substitute(**info)
|
return template.substitute(**info)
|
||||||
except KeyError:
|
except (KeyError, ValueError):
|
||||||
return template.safe_substitute(**info)
|
return template.safe_substitute(**info)
|
||||||
|
|
||||||
def _format(self, message: FormattingMessage) -> FormattingMessage:
|
def _format(self, message: FormattingMessage) -> FormattingMessage:
|
||||||
|
Loading…
Reference in New Issue
Block a user