ignore keyerrors in this case

This commit is contained in:
Jakob Ketterl 2020-05-03 21:28:37 +02:00
parent 8e313517d1
commit 981d3b6673

View File

@ -264,8 +264,11 @@ class OpenWebRxReceiverClient(Client):
stack.addLayer(0, self.sdr.getProps()) stack.addLayer(0, self.sdr.getProps())
stack.addLayer(1, config) stack.addLayer(1, config)
protected = stack.filter(*keys) protected = stack.filter(*keys)
for key, value in params.items(): try:
protected[key] = value for key, value in params.items():
protected[key] = value
except KeyError:
pass
def getDsp(self): def getDsp(self):
if self.dsp is None: if self.dsp is None: