diff --git a/light8/Patch.py b/light8/Patch.py --- a/light8/Patch.py +++ b/light8/Patch.py @@ -8,7 +8,7 @@ def get_dmx_channel(name): i = int(name) return i except ValueError: - raise "Invalid channel name:", name + raise ValueError("Invalid channel name: %s" % name) def get_channel_name(dmxnum): try: diff --git a/light8/subediting.py b/light8/subediting.py --- a/light8/subediting.py +++ b/light8/subediting.py @@ -38,13 +38,10 @@ class Subediting: self.startlevels = self.sub.getlevels() def getcurrentlevel(self,lightname): - print "resolve",lightname - ch = get_dmx_channel(lightname) try: ch = get_dmx_channel(lightname) except ValueError: return None - print "resolved ch",ch return self.currentoutputlevels[ch] def levelchange(self,lightnames,delta):