Mercurial > code > home > repos > light9
changeset 374:5cda9c5f66dd
submaster ignores unknown channels
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Fri, 15 Jun 2007 20:18:49 +0000 |
parents | e0fc0e6127f4 |
children | 962f46713b63 |
files | light9/Submaster.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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):