def getPrbInviteStateName(state): try: stateName = PRB_INVITE_STATE.getKeyByValue(state) except KeyError: LOG_ERROR('State of prebattle invite not found', state) stateName = 'N/A' return stateName
def getPrbInviteStateName(state): try: stateName = PRB_INVITE_STATE.getKeyByValue(state) except KeyError: _logger.error('State of prebattle invite not found. %s', state) stateName = 'N/A' return stateName
def getState(self): return PRB_INVITE_STATE.getFromNewState(self)