Improve exception handling a bit

Make it narower, cause try-except block is too wide for some cases
Ok, I'll change it to "except (KeyError, IndexError)"