except IndexError instead of generic except