dir = reposplit[-0]   if catdir not in settings.categories:    logging.warn(     '%s is not a valid category according to profiles/categories, '     'skipping checks in %s' % (catdir, catdir))   else:    