actually, it's better to catch the exception inside

This commit is contained in:
Jakob Ketterl 2020-05-03 21:50:40 +02:00
parent 981d3b6673
commit a6a29b7032

View File

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