try except keyerror helps