def handle_asynchronous_message(self, message):
    if isinstance(message, messages.ParameterStatus):
        if (message.name == 'protocol_version'):
            message.value = int(message.value)
        self.parameters[message.name] = message.value
    elif (isinstance(message, messages.NoticeResponse) and (not isinstance(message, messages.ErrorResponse))):
        if (getattr(self, 'notice_handler', None) is not None):
            self.notice_handler(message)
        else:
            self._logger.warning(message.error_message())
def handle_asynchronous_message(self, message):
    if isinstance(message, messages.ParameterStatus):
        if (message.name == 'protocol_version'):
            message.value = int(message.value)
        self.parameters[message.name] = message.value
    elif (isinstance(message, messages.NoticeResponse) and (not isinstance(message, messages.ErrorResponse))):
        if (getattr(self, 'notice_handler', None) is not None):
            self.notice_handler(message)
        else:
            self._logger.warning(message.error_message())