Add Value error
This commit is contained in:
parent
38b7e4f176
commit
a5c011a1aa
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user