If the wrong token is passed, handle the session KeyError. Remove unnecessary quoting.