Ticket #147: diff

File diff, 770 bytes (added by desai, 16 years ago)
  • src/lib/Server/Component.py

     
    137137        except: 
    138138            self.logger.error("Failed to load ssl key %s" % (keyfile), exc_info=1) 
    139139            raise ComponentInitError 
    140         SimpleXMLRPCServer.SimpleXMLRPCDispatcher.__init__(self) 
     140        try: 
     141            SimpleXMLRPCServer.SimpleXMLRPCDispatcher.__init__(self) 
     142        except TypeError: 
     143            SimpleXMLRPCServer.SimpleXMLRPCDispatcher.__init__(self, False, None) 
    141144        self.logRequests = 0 
    142145        self.port = self.socket.getsockname()[1] 
    143146        self.url = "https://%s:%s" % (socket.gethostname(), self.port)