From cd935c0dcbf42ef5940457307a727e9ddb8783d5 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Tue, 4 May 2021 16:05:44 +0200 Subject: [PATCH] check for empty return --- owrx/meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owrx/meta.py b/owrx/meta.py index 85de1ba..f246d15 100644 --- a/owrx/meta.py +++ b/owrx/meta.py @@ -66,7 +66,7 @@ class DmrMetaEnricher(object): self.threads[id].start() return meta data = cache.get(id) - if "count" in data and data["count"] > 0 and "results" in data: + if data is not None and "count" in data and data["count"] > 0 and "results" in data: meta["additional"] = data["results"][0] return meta