From ebadb68c1872c470d6fa1b98e3568634921ac0e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 20 Feb 2024 16:11:59 +0100 Subject: [PATCH] added exception MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/app.py b/server/app.py index 1115642..d4ee907 100644 --- a/server/app.py +++ b/server/app.py @@ -123,17 +123,15 @@ def mqtt_publisher(ti_queue): end = time.time() print("Receiving of tube index took: "+str(end-start)) tube_index_old = tube_index - except: + except Exception as e: + print(e) if tube_index_old is not None: tube_index = tube_index_old else: tube_index = None # Gets whatever the last Art-Net packet we received is - start = time.time() artNetPacket = artNet.readPacket() # Make sure we actually *have* a packet - end = time.time() - print("Receiving of artnet packet took: "+str(end-start)) if artNetPacket is not None: if tube_index is not None: for index_row in tube_index: