mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-27 18:45:05 +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
|
||||
|
||||
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…
Reference in New Issue
Block a user