'Process the data and finish when the client finished.
Args:
data: A string with the received data.'

@pyqtSlot(str)
def on_client_success(self, data):

    try:
        json_data = json.loads(data)
    except ValueError as e:
        self.error.emit('Invalid    JSON    received    in    reply:    {}!'.format(e))
        return
    try:
        self.success.emit(json_data['info']['version'])
    except KeyError as e:
        self.error.emit('Malformed    data    received    in    reply    ({!r}    not    found)!'.format(e))
        return
