Fix referencing response in except clause