def _processChatError(self, action, channelId, chatError, requestID = -1): if isinstance(chatError, ChatError): actionData = chatError.messageArgs if chatError.messageArgs is not None else chatError.message else: actionData = '' chatAction = buildChatActionData(action=action, requestID=requestID, channelId=channelId, originatorNickName=self.name, data=actionData, actionResponse=chatError.response if isinstance(chatError, ChatError) else CHAT_RESPONSES.internalError) self.onChatAction(chatAction)
def _processChatError(self, action, channelId, chatError, requestID=-1): if isinstance(chatError, ChatError): actionData = chatError.messageArgs if chatError.messageArgs is not None else chatError.message else: actionData = '' chatAction = buildChatActionData(action=action, requestID=requestID, channelId=channelId, originatorNickName=self.name, data=actionData, actionResponse=chatError.response if isinstance(chatError, ChatError) else CHAT_RESPONSES.internalError) self.onChatAction(chatAction) return