def read_response(self):
    'Read the response from a previously sent command'
    try:
        response = self._parser.read_response()
    except:
        self.disconnect()
        raise
    if isinstance(response, ResponseError):
        raise response
    return response
Read the response from a previously sent command
def read_response(self):
    
    try:
        response = self._parser.read_response()
    except:
        self.disconnect()
        raise
    if isinstance(response, ResponseError):
        raise response
    return response