Catch exceptions raised by pyes `index` method
And log the exceptions rather than just dying.