Sfoglia il codice sorgente

fix: LibreLight editor memcachd.get(ip) check

micha 2 anni fa
parent
commit
8b17257fcc
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 5 4
      _LibreLightDesk.py

+ 5 - 4
_LibreLightDesk.py

@@ -318,10 +318,11 @@ class MC():
                 #ip="ltp-out-0"
 
                 x=self.mc.get(ip)
-                #val = x[501-1]
-                val = x[141-1]
-                #print("mc val",val)
-                set_exec_fader(0,val)
+                if x:
+                    #val = x[501-1]
+                    val = x[141-1]
+                    #print("mc val",val)
+                    #set_exec_fader(0,val)
                 time.sleep(0.01)
             except Exception as e:
                 print("exc", e)