diff light8/Patch.py @ 42:5e4fb4ac2d18

corrected Patch's error behavior and subediting's catching behavior
author drewp
date Sun, 07 Jul 2002 12:24:01 +0000
parents f974a462133f
children 174b35926067
line wrap: on
line diff
--- a/light8/Patch.py	Sun Jul 07 12:18:06 2002 +0000
+++ b/light8/Patch.py	Sun Jul 07 12:24:01 2002 +0000
@@ -8,7 +8,7 @@
         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: