Replies: 1 comment
-
Hi @arielvol, the method is simply issuing a A list of exceptions can be found here: https://github.com/opensearch-project/opensearch-py/blob/main/opensearchpy/exceptions.py |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to create a method that receives a list of indexes name and then, in a loop, calls the "wr.opensearch.delete_index" method and deletes them one by one.
However, I don't want to fail the all deletion if there is an issue with a specific delete, so I want to use a try - except expression.
I usually try to avoid a generic "except" phrase and try to catch the exact error, but I can't find any documentation that can tell me which type of errors I might get from the "wr.opensearch.delete_index" method call.
Beta Was this translation helpful? Give feedback.
All reactions