'Manage limits of the folder list'

def get_alert(self, stat):

    if (not isinstance(stat['size'], numbers.Number)):
        return 'DEFAULT'
    else:
        ret = 'OK'
    if ((stat['critical'] is not None) and (stat['size'] > (int(stat['critical']) * 1000000))):
        ret = 'CRITICAL'
    elif ((stat['warning'] is not None) and (stat['size'] > (int(stat['warning']) * 1000000))):
        ret = 'WARNING'
    elif ((stat['careful'] is not None) and (stat['size'] > (int(stat['careful']) * 1000000))):
        ret = 'CAREFUL'
    return ret
