def check_id(self):
        """
            Raise an exception if the command and the response id does not match
        """
        if self.response_id != self.command.get_command_id():
            raise Exception(
                "Error decoding response : the response id {} doesn't match the command id {}".format(self.response_id,
                                                                                                      self.command.get_command_id()))
def check_id ( self ) : if self . response_id != self . command . get_command_id ( ) : raise Exception ( "Error decoding response : the response id {} doesn't match the command id {}" . format ( self . response_id , self . command . get_command_id ( ) ) )
Raise an exception if the command and the response id does not match