From 3b9763eee56b007b30b6d396beae0182513b6968 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 20 Mar 2021 02:16:08 +0100 Subject: [PATCH] fix device deletion --- owrx/sdr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/owrx/sdr.py b/owrx/sdr.py index cad207e..9a177d4 100644 --- a/owrx/sdr.py +++ b/owrx/sdr.py @@ -20,7 +20,8 @@ class MappedSdrSources(PropertyDelegator): def handleSdrDeviceChange(self, changes): for key, value in changes.items(): if value is PropertyDeleted: - del self[key] + if key in self: + del self[key] else: self._addSource(key, value)