X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=sfa%2Fserver%2Fxmlrpcapi.py;h=8b8bd78123d93feb7db75632566de5f3b4f108ed;hp=b6f8e9512bc5955e00cddc0fe1962b971f704156;hb=ecc85e0b923922cf7117d29b380f5284edb88f21;hpb=fad16c7d54b658b37a9b42fbee47b0d4f51cb8ec diff --git a/sfa/server/xmlrpcapi.py b/sfa/server/xmlrpcapi.py index b6f8e951..8b8bd781 100644 --- a/sfa/server/xmlrpcapi.py +++ b/sfa/server/xmlrpcapi.py @@ -71,7 +71,7 @@ def xmlrpclib_dump(self, value, write): if isinstance(value, Type): f(*args) return - raise TypeError, "cannot marshal %s objects" % type(value) + raise TypeError("cannot marshal %s objects" % type(value)) else: f(*args) @@ -102,7 +102,7 @@ class XmlrpcApi: """ # Look up method if method not in self.methods: - raise SfaInvalidAPIMethod, method + raise SfaInvalidAPIMethod(method) # Get new instance of method try: @@ -112,7 +112,7 @@ class XmlrpcApi: return getattr(module, classname)(self) except (ImportError, AttributeError): self.logger.log_exc("Error importing method: %s" % method) - raise SfaInvalidAPIMethod, method + raise SfaInvalidAPIMethod(method) def call(self, source, method, *args): """