# HG changeset patch # User Drew Perttula # Date 1181938729 0 # Node ID 5cda9c5f66dd3b52d6b992c39ffa50f087d38993 # Parent e0fc0e6127f42555902927e1036438d86e688526 submaster ignores unknown channels diff -r e0fc0e6127f4 -r 5cda9c5f66dd light9/Submaster.py --- a/light9/Submaster.py Fri Jun 15 20:13:23 2007 +0000 +++ b/light9/Submaster.py Fri Jun 15 20:18:49 2007 +0000 @@ -70,6 +70,9 @@ chan = graph.value(lev, L9['channel']) val = graph.value(lev, L9['level']) name = patchGraph.label(chan) + if not name: + print "sub %r has channel %r with no name- leaving out that channel" % (self.name, chan) + continue self.levels[name] = float(val) if (not quiet) and (oldlevels != self.levels):