Revert "Modified updateIndex function to catch exception"

This reverts commit bcca2c0a63d56998fcdd9239bab8381fe83c050c.