Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Don't make unindex_objects fail when trying to unindex an object that is not indexed #279

@krs-wraus

Description

@krs-wraus

Right now, unindex_objects is very difficult to use since it will fail if any of the provided indexes are not present. This means that it can't be used without some kind of error checking, or looking up to see if the items to be unindexed are already in the index.

This can likely be fixed by using a try block and catching the NotFoundError so that it doesn't die immediately upon unindexing an object not in the index. Maybe make an optional argument to the function to ignore missing objects?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions