mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +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:
|
:param message:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
|
if type(message) != str:
|
||||||
|
return message
|
||||||
if message == "":
|
if message == "":
|
||||||
return ""
|
return ""
|
||||||
max_pre_len = 8
|
max_pre_len = 8
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue