def get_root(token, name):
    if (not token):
        logger.warning('No token provided, dry run mode. Nothing will be uploaded to Notion!')
        return None
    try:
        client = get_notion_client(token)
    except BadTokenException:
        logger.error('Invalid token provided!')
        sys.exit(1)
    return get_import_root(client, name)
def get_root(token, name):
    if (not token):
        logger.warning('No token provided, dry run mode. Nothing will be uploaded to Notion!')
        return None
    try:
        client = get_notion_client(token)
    except BadTokenException:
        logger.error('Invalid token provided!')
        sys.exit(1)
    return get_import_root(client, name)