This KeyError is raised and then caught on the next line (except KeyError:). You shouldn't be seeing it unless you're stepping through the code or have set Wing up to always stop at KeyError exceptions.