From a6a29b70328ea8f55a9c15d2de08dc5eda327b46 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 3 May 2020 21:50:40 +0200 Subject: [PATCH] actually, it's better to catch the exception inside --- owrx/connection.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/owrx/connection.py b/owrx/connection.py index 466adf7..4ac9386 100644 --- a/owrx/connection.py +++ b/owrx/connection.py @@ -264,11 +264,11 @@ class OpenWebRxReceiverClient(Client): stack.addLayer(0, self.sdr.getProps()) stack.addLayer(1, config) protected = stack.filter(*keys) - try: - for key, value in params.items(): + for key, value in params.items(): + try: protected[key] = value - except KeyError: - pass + except KeyError: + pass def getDsp(self): if self.dsp is None: