micha 4 сар өмнө
parent
commit
63d98bff6b

+ 7 - 6
tool/TK-Nodescanner.py

@@ -180,12 +180,13 @@ def __scan():
                 color = li_nodes.itemconfig("end", bg=bg)
                 ip = str(node_nr).rjust(3," ") +" "+ node["IP"]
                 bg = ""
-                if node["PortTypes"][0] == "@":
-                    ip += "  DMX-in"
-                    bg ="yellow"
-                else:
-                    ip += "  DMX-out"
-                    bg ="lightgreen" 
+                if node["PortTypes"]:
+                    if node["PortTypes"][0] == "@":
+                        ip += "  DMX-in"
+                        bg ="yellow"
+                    else:
+                        ip += "  DMX-out"
+                        bg ="lightgreen" 
                 if bg:
                     color = li_nodes.itemconfig("end", bg=bg)