def METHOD_NAME(self):
    if not os.path.exists(dnf.cli.aliases.ALIASES_USER_PATH):
        open(dnf.cli.aliases.ALIASES_USER_PATH, 'w').close()
    try:
        conf = dnf.cli.aliases.AliasesConfig(
            dnf.cli.aliases.ALIASES_USER_PATH)
    except dnf.exceptions.ConfigError as e:
        logger.warning(_('Config error: %s'), e)
        return None
    return conf