mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-07 07:25:27 +00:00
handle unparseable utf meta data
This commit is contained in:
parent
54a1cae352
commit
47e78579d4
1 changed files with 5 additions and 1 deletions
|
|
@ -172,7 +172,11 @@ class MetaParser(Parser):
|
|||
self.currentMetaData = None
|
||||
|
||||
def parse(self, raw: memoryview):
|
||||
raw = raw.tobytes().decode("utf-8").rstrip("\n")
|
||||
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…
Add table
Add a link
Reference in a new issue