🐛 fix format field error

This commit is contained in:
yanyongyu 2021-08-28 19:42:32 +08:00
parent 116f16b470
commit 5cf665fa21

View File

@ -105,4 +105,4 @@ class MessageFormatter(Formatter, Generic[TM]):
[""])), auto_arg_index
def format_field(self, value: Any, format_spec: str) -> Any:
return super().format_field(value, format_spec) if format_spec else None
return super().format_field(value, format_spec) if format_spec else value