From: Tony Mack Date: Fri, 30 Jul 2010 20:42:56 +0000 (+0000) Subject: fix bug when raising InvalidMethod exception X-Git-Tag: sfa-1.0-0~127 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=83b8ce6c9f0e9398e016158f5dccefa54ac6fdcc;p=sfa.git fix bug when raising InvalidMethod exception --- 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"):