"fix the bug: json parse error"

This commit is contained in:
abcbca 2025-02-07 23:43:06 +08:00
parent 2f6e94c94c
commit 721d86167e

View file

@ -393,7 +393,7 @@ class MessageParser:
def process_identify(self, data, decompress=True):
try:
if decompress:
data = zlib.decompress(data)
data = zlib.decompress(data).decode('utf-8')
self.raw_identify_data = data
data = json.loads(data)
self.fill_enumerations(data.get('enumerations', {}))