# HG changeset patch # User Drew Perttula # Date 2007-06-15 20:18:49 # Node ID 5cda9c5f66dd3b52d6b992c39ffa50f087d38993 # Parent e0fc0e6127f42555902927e1036438d86e688526 submaster ignores unknown channels diff --git a/light9/Submaster.py b/light9/Submaster.py --- a/light9/Submaster.py +++ b/light9/Submaster.py @@ -70,6 +70,9 @@ class Submaster: 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):