X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fserver%2Fmodpython%2FSfaAggregateModPython.py;h=5d38a553e7d31e3b25861509913cd57ea71cc688;hb=a0ef6e7c91c3c8fa376943d28fec8c5c204a78cd;hp=deaf89f979ae9a3999e31b3ab9f5d9ad7ff12042;hpb=db091e73c33c373b7f6c2c96bd2caf6a2acf0178;p=sfa.git diff --git a/sfa/server/modpython/SfaAggregateModPython.py b/sfa/server/modpython/SfaAggregateModPython.py index deaf89f9..5d38a553 100755 --- a/sfa/server/modpython/SfaAggregateModPython.py +++ b/sfa/server/modpython/SfaAggregateModPython.py @@ -9,13 +9,12 @@ import sys import traceback -import xmlrpclib from mod_python import apache -from sfa.plc.api import SfaAPI from sfa.util.sfalogging import logger +from sfa.planetlab.server import SfaApi -api = SfaAPI(interface='aggregate') +api = SfaApi(interface='aggregate') def handler(req): try: @@ -51,7 +50,7 @@ def handler(req): return apache.OK - except Exception, err: + except Exception as err: # Log error in /var/log/httpd/(ssl_)?error_log logger.log_exc('%r'%err) return apache.HTTP_INTERNAL_SERVER_ERROR