if result not nun check

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 04:14:41 +01:00
parent 08d72f4493
commit 90b6bbc741
1 changed files with 37 additions and 36 deletions

View File

@ -123,6 +123,7 @@ def start_mqtt_publishers():
#Checks to see if the current packet is for the specified DMX Universe
dmxPacket = artNetPacket.data
# Create MQTT topic based on the universe and channel
if result is not None:
for row in result:
dmx_address = int(row[2])
if artNetPacket.universe == int(row[1]):