You're referring to an identifier "request" here that isn't going to be assigned  if the try block fails. When I try to ctrl+c out of a name prompt, I get an UnboundLocalError :(