Fix: LogMessage 会在输入非 str 之后报错(
This commit is contained in:
parent
390bdae762
commit
7f09f336ef
@ -6,7 +6,7 @@ A python lib came from [Difficult Rocket](https://github.com/shenjackyuanjie/Dif
|
|||||||
|
|
||||||
## Information/信息
|
## Information/信息
|
||||||
|
|
||||||
- Version / 版本: 0.3.9
|
- Version / 版本: 0.3.10
|
||||||
- Author / 作者: shenjackyuanjie <3695888@qq.com>
|
- Author / 作者: shenjackyuanjie <3695888@qq.com>
|
||||||
|
|
||||||
[shenjackyuanjie](https://github.com/shenjackyuanjie)
|
[shenjackyuanjie](https://github.com/shenjackyuanjie)
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
# lndl 0.3
|
# lndl 0.3
|
||||||
|
|
||||||
|
## 0.3.10
|
||||||
|
|
||||||
|
- 修复了 `LogMessage` 在传入非字符串时会因为 `str.join` 只支持 `str` 类型报错
|
||||||
|
|
||||||
## 0.3.9
|
## 0.3.9
|
||||||
|
|
||||||
- 改进了 `lndl-nuitka` 在没有找到 toml 库的时候的报错
|
- 改进了 `lndl-nuitka` 在没有找到 toml 库的时候的报错
|
||||||
|
@ -9,7 +9,7 @@ from typing import TYPE_CHECKING
|
|||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from lib_not_dr import loggers, nuitka, types, command
|
from lib_not_dr import loggers, nuitka, types, command
|
||||||
|
|
||||||
_version_ = "0.3.9"
|
_version_ = "0.3.10"
|
||||||
|
|
||||||
# fmt: off
|
# fmt: off
|
||||||
__all__ = [
|
__all__ = [
|
||||||
|
@ -87,7 +87,7 @@ class LogMessage:
|
|||||||
def format_message(self) -> str:
|
def format_message(self) -> str:
|
||||||
if self.split is None:
|
if self.split is None:
|
||||||
self.split = " "
|
self.split = " "
|
||||||
return self.split.join(self.messages) + self.end
|
return self.split.join(str(item) for item in self.messages) + self.end
|
||||||
|
|
||||||
def format_for_message(self) -> Dict[str, str]:
|
def format_for_message(self) -> Dict[str, str]:
|
||||||
basic_info = self.option()
|
basic_info = self.option()
|
||||||
|
Loading…
Reference in New Issue
Block a user