# HG changeset patch # User drewp # Date 2002-07-07 12:24:01 # Node ID 5e4fb4ac2d181b9cbce2de27191c1775909499f3 # Parent 02151923be459ea0a898bf9e1ee0f9a02ff3868f corrected Patch's error behavior and subediting's catching behavior 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):