From f05ac31dc41e8f8df107786abad281bf4530c9a3 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Thu, 9 Jan 2020 13:49:38 +0100 Subject: [PATCH] don't choke on invalid characters --- owrx/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owrx/connection.py b/owrx/connection.py index 355181c..81d939f 100644 --- a/owrx/connection.py +++ b/owrx/connection.py @@ -277,7 +277,7 @@ class OpenWebRxReceiverClient(Client): self.send(bytes([0x03]) + data) def write_secondary_demod(self, data): - message = data.decode("ascii") + message = data.decode("ascii", "replace") self.send({"type": "secondary_demod", "value": message}) def write_secondary_dsp_config(self, cfg):