X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fserver%2Fxmlrpcapi.py;h=167ac88054e490c24a0fe8403cf7104756ffc303;hb=a0ef6e7c91c3c8fa376943d28fec8c5c204a78cd;hp=8b8bd78123d93feb7db75632566de5f3b4f108ed;hpb=ecc85e0b923922cf7117d29b380f5284edb88f21;p=sfa.git diff --git a/sfa/server/xmlrpcapi.py b/sfa/server/xmlrpcapi.py index 8b8bd781..167ac880 100644 --- a/sfa/server/xmlrpcapi.py +++ b/sfa/server/xmlrpcapi.py @@ -138,7 +138,7 @@ class XmlrpcApi: method = method_map[method] methodresponse = True - except Exception, e: + except Exception as e: if SOAPpy is not None: self.protocol = 'soap' interface = SOAPpy @@ -151,10 +151,10 @@ class XmlrpcApi: try: result = self.call(source, method, *args) - except SfaFault, fault: + except SfaFault as fault: result = fault self.logger.log_exc("XmlrpcApi.handle has caught Exception") - except Exception, fault: + except Exception as fault: self.logger.log_exc("XmlrpcApi.handle has caught Exception") result = SfaAPIError(fault)