Merge branch 'master' into woodhead_pywxdump

Signed-off-by: xaoyaoo <37209452+xaoyaoo@users.noreply.github.com>
This commit is contained in:
xaoyaoo 2023-12-04 19:25:07 +08:00 committed by GitHub
commit 4fe017143d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -244,17 +244,15 @@ def wordcloud_generator(text, out_path="", is_show=False, img_path="", font="C:\
wordcloud_img = wordcloud1.to_image()
wordcloud_img.show()
def read_BytesExtra(data):
def read_BytesExtra(bytes_extra):
if bytes_extra is None:
return None
deserialize_data = None
try:
deserialize_data, message_type = blackboxprotobuf.decode_message(bytes_extra)
return deserialize_data
except Exception as e:
print(f"can not decode bytes_extra:{e}")
# print(f"can not decode bytes_extra:{e}")
return None
return deserialize_data
if __name__ == '__main__':
data = ''