mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-21 18:15:50 +08:00
🐛 fix format field error
This commit is contained in:
parent
116f16b470
commit
5cf665fa21
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user