mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
fix: handle non-string message types in function_lib_serializer
This commit is contained in:
parent
6aa0e9b5e4
commit
7afc1da0af
|
|
@ -44,6 +44,8 @@ def encryption(message: str):
|
|||
:param message:
|
||||
:return:
|
||||
"""
|
||||
if type(message) != str:
|
||||
return message
|
||||
if message == "":
|
||||
return ""
|
||||
max_pre_len = 8
|
||||
|
|
|
|||
Loading…
Reference in New Issue