From 496d5bacaf3dadc6c028d4edec083edc345c9193 Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Mon, 4 Dec 2023 19:21:26 +0800 Subject: [PATCH] =?UTF-8?q?parse.py=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pywxdump/analyse/parse.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pywxdump/analyse/parse.py b/pywxdump/analyse/parse.py index 8869c6b..a695b5e 100644 --- a/pywxdump/analyse/parse.py +++ b/pywxdump/analyse/parse.py @@ -245,16 +245,15 @@ def wordcloud_generator(text, out_path="", is_show=False, img_path="", font="C:\ 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 = ''