From 83b8ce6c9f0e9398e016158f5dccefa54ac6fdcc Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 30 Jul 2010 20:42:56 +0000 Subject: [PATCH] fix bug when raising InvalidMethod exception --- sfa/util/method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfa/util/method.py b/sfa/util/method.py index 1df12457..473bcd17 100644 --- a/sfa/util/method.py +++ b/sfa/util/method.py @@ -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"): -- 2.47.0