git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2to3 -f except
[sfa.git]
/
sfa
/
server
/
xmlrpcapi.py
diff --git
a/sfa/server/xmlrpcapi.py
b/sfa/server/xmlrpcapi.py
index
8b8bd78
..
167ac88
100644
(file)
--- a/
sfa/server/xmlrpcapi.py
+++ b/
sfa/server/xmlrpcapi.py
@@
-138,7
+138,7
@@
class XmlrpcApi:
method = method_map[method]
methodresponse = True
method = method_map[method]
methodresponse = True
- except Exception
,
e:
+ except Exception
as
e:
if SOAPpy is not None:
self.protocol = 'soap'
interface = SOAPpy
if SOAPpy is not None:
self.protocol = 'soap'
interface = SOAPpy
@@
-151,10
+151,10
@@
class XmlrpcApi:
try:
result = self.call(source, method, *args)
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")
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)
self.logger.log_exc("XmlrpcApi.handle has caught Exception")
result = SfaAPIError(fault)