From ea8c8dabaf9c2dcc0c40807e5a3ad2b27a84616a Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Sat, 3 Jun 2023 13:38:15 +0200 Subject: [PATCH] split the cases for better messages --- bstrd/bscache.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bstrd/bscache.py b/bstrd/bscache.py index 96b1268..8620366 100644 --- a/bstrd/bscache.py +++ b/bstrd/bscache.py @@ -92,7 +92,11 @@ class BSCache: self.channels[name] = cfg self.pt.start() - while self.data is None or name not in self.data: + while self.data is None: + print("dropping empty data") + next(self) + + while name not in self.data: print("dropping data that is missing new channel:", name) next(self)