diff --git a/libs/lib_not_dr/logger/formatter.py b/libs/lib_not_dr/logger/formatter.py index 62d36a3..529508e 100644 --- a/libs/lib_not_dr/logger/formatter.py +++ b/libs/lib_not_dr/logger/formatter.py @@ -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: