Replaced try/except with pytables.