Ignore invalid responses.

Not sure if this is the right approach.

You should just initialize response to None above this try block.