From b7d20b8f26e6193067dd600856466b0156553c5e Mon Sep 17 00:00:00 2001 From: bkfox Date: Wed, 20 May 2020 14:57:55 +0200 Subject: [PATCH] streamer must have outputs to be run --- aircox_streamer/management/commands/streamer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aircox_streamer/management/commands/streamer.py b/aircox_streamer/management/commands/streamer.py index 7c6e8f1..1465311 100755 --- a/aircox_streamer/management/commands/streamer.py +++ b/aircox_streamer/management/commands/streamer.py @@ -297,6 +297,8 @@ class Command (BaseCommand): streamers = [Streamer(station) for station in stations] for streamer in streamers: + if not streamer.outputs: + raise RuntimeError("Streamer {} has no outputs" % streamer.id) if config: streamer.make_config() if run: