mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-28 08:41:29 +00:00
🐛 fix format field error
This commit is contained in:
@ -105,4 +105,4 @@ class MessageFormatter(Formatter, Generic[TM]):
|
|||||||
[""])), auto_arg_index
|
[""])), auto_arg_index
|
||||||
|
|
||||||
def format_field(self, value: Any, format_spec: str) -> Any:
|
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
|
||||||
|
Reference in New Issue
Block a user