Skip to content
This repository has been 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

Open
krs-wraus opened this issue Nov 11, 2014 · 0 comments

Comments

@krs-wraus
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant