will this ever throw a keyerror? if it does is the message informative? i would guess not .... so if necessary, you should catch a give a more informative keyerorr