Beispiel #1
0
    def listDevices(self):
        """
        Get a list of Devices boud to the Server.
        """

        try:
            return self.sendAndReceive(SystemRequestFactory.listDevices())
        except RuntimeError as e:
            if e.message == 'Received an empty response from the Agent. This normally means the remote service has crashed.':
                raise ConnectionError(e)
            else:
                raise
Beispiel #2
0
    def listDevices(self):
        """
        Get a list of Devices boud to the Server.
        """

        try:
            return self.sendAndReceive(SystemRequestFactory.listDevices())
        except RuntimeError as e:
            if e.message == 'Received an empty response from the Agent. This normally means the remote service has crashed.':
                raise ConnectionError(e)
            else:
                raise