From b35c3c152c74396b2e5b04b15e2c40ad24f71381 Mon Sep 17 00:00:00 2001 From: aestene Date: Tue, 22 Nov 2022 15:45:47 +0100 Subject: [PATCH] Check if there are no publishers available --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 07a14d2f..740c6135 100644 --- a/main.py +++ b/main.py @@ -57,7 +57,9 @@ publishers: List[Thread] = robot.get_telemetry_publishers( queue=queues.mqtt_queue, robot_id=settings.ROBOT_ID ) - threads.extend(publishers) + + if publishers: + threads.extend(publishers) api: API = injector.get(API) api_thread: Thread = Thread(target=api.run_app, name="ISAR API", daemon=True)