fix bug when raising InvalidMethod exception
authorTony Mack <tmack@cs.princeton.edu>
Fri, 30 Jul 2010 20:42:56 +0000 (20:42 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 30 Jul 2010 20:42:56 +0000 (20:42 +0000)
sfa/util/method.py

index 1df1245..473bcd1 100644 (file)
@@ -74,7 +74,7 @@ class Method (object):
             start = time.time()
             methodname = self.name
             if not self.api.interface or self.api.interface not in self.interfaces:
-                raise SfaInvalidAPIMethod, methodname, self.api.interface 
+                raise SfaInvalidAPIMethod(methodname, self.api.interface) 
 
             # legacy code cannot be type-checked, due to the way Method.args() works
             if not hasattr(self,"skip_typecheck"):