handle unparseable utf meta data
This commit is contained in:
parent
54a1cae352
commit
47e78579d4
@ -172,7 +172,11 @@ class MetaParser(Parser):
|
||||
self.currentMetaData = None
|
||||
|
||||
def parse(self, raw: memoryview):
|
||||
try:
|
||||
raw = raw.tobytes().decode("utf-8").rstrip("\n")
|
||||
except UnicodeError:
|
||||
logger.warning("unable to decode meta binary: %s", str(raw.tobytes()))
|
||||
return
|
||||
|
||||
for meta in raw.split("\n"):
|
||||
fields = meta.split(";")
|
||||
|
Loading…
Reference in New Issue
Block a user