Catch KeyError

Yes, sometimes python trows too much exceptions.