From ff9f771e1b2e46946e40778036b4569ddecf4293 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Fri, 5 Mar 2021 19:44:45 +0100 Subject: [PATCH] handle the resampler --- owrx/source/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/owrx/source/__init__.py b/owrx/source/__init__.py index 8681c05..1fc0650 100644 --- a/owrx/source/__init__.py +++ b/owrx/source/__init__.py @@ -64,6 +64,9 @@ class SdrSourceEventClient(ABC): class SdrProfileCarousel(PropertyCarousel): def __init__(self, props): super().__init__() + if "profiles" not in props: + return + for profile_id, profile in props["profiles"].items(): self.addLayer(profile_id, profile) # activate first available profile