{"action":"created","issue":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/3718","repository_url":"https://api.github.com/repos/kennethreitz/requests","labels_url":"https://api.github.com/repos/kennethreitz/requests/issues/3718/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/requests/issues/3718/comments","events_url":"https://api.github.com/repos/kennethreitz/requests/issues/3718/events","html_url":"https://github.com/kennethreitz/requests/pull/3718","id":191383270,"number":3718,"title":"Make Response.content() return None if status_code is None","user":{"login":"nsoranzo","id":4924623,"avatar_url":"https://avatars.githubusercontent.com/u/4924623?v=3","gravatar_id":"","url":"https://api.github.com/users/nsoranzo","html_url":"https://github.com/nsoranzo","followers_url":"https://api.github.com/users/nsoranzo/followers","following_url":"https://api.github.com/users/nsoranzo/following{/other_user}","gists_url":"https://api.github.com/users/nsoranzo/gists{/gist_id}","starred_url":"https://api.github.com/users/nsoranzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsoranzo/subscriptions","organizations_url":"https://api.github.com/users/nsoranzo/orgs","repos_url":"https://api.github.com/users/nsoranzo/repos","events_url":"https://api.github.com/users/nsoranzo/events{/privacy}","received_events_url":"https://api.github.com/users/nsoranzo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-23T21:26:30Z","updated_at":"2016-11-23T21:48:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kennethreitz/requests/pulls/3718","html_url":"https://github.com/kennethreitz/requests/pull/3718","diff_url":"https://github.com/kennethreitz/requests/pull/3718.diff","patch_url":"https://github.com/kennethreitz/requests/pull/3718.patch"},"body":"Fix #3698.\r\n\r\nThis fixes also a traceback in https://github.com/galaxyproject/bioblend/blob/master/bioblend/galaxy/client.py#L135 where the `text` attribute of an empty `requests.Response()` object is used:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/users/ga002/soranzon/software/galaxyproject_bioblend/tests/TestGalaxyInstance.py\", line 37, in test_get_retry\r\n    self.gi.libraries.get_libraries()\r\n  File \"/usr/users/ga002/soranzon/software/galaxyproject_bioblend/bioblend/galaxy/libraries/__init__.py\", line 218, in get_libraries\r\n    libraries = self._get(deleted=deleted)\r\n  File \"/usr/users/ga002/soranzon/software/galaxyproject_bioblend/bioblend/galaxy/client.py\", line 135, in _get\r\n    raise ConnectionError(msg, body=r.text,\r\n  File \"/usr/users/ga002/soranzon/software/galaxyproject_bioblend/.tox/py27/local/lib/python2.7/site-packages/requests/models.py\", line 796, in text\r\n    if not self.content:\r\n  File \"/usr/users/ga002/soranzon/software/galaxyproject_bioblend/.tox/py27/local/lib/python2.7/site-packages/requests/models.py\", line 772, in content\r\n    self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()\r\n  File \"/usr/users/ga002/soranzon/software/galaxyproject_bioblend/.tox/py27/local/lib/python2.7/site-packages/requests/models.py\", line 705, in generate\r\n    chunk = self.raw.read(chunk_size)\r\nAttributeError: 'NoneType' object has no attribute 'read'\r\n```"},"comment":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/comments/262638112","html_url":"https://github.com/kennethreitz/requests/pull/3718#issuecomment-262638112","issue_url":"https://api.github.com/repos/kennethreitz/requests/issues/3718","id":262638112,"user":{"login":"Lukasa","id":1382556,"avatar_url":"https://avatars.githubusercontent.com/u/1382556?v=3","gravatar_id":"","url":"https://api.github.com/users/Lukasa","html_url":"https://github.com/Lukasa","followers_url":"https://api.github.com/users/Lukasa/followers","following_url":"https://api.github.com/users/Lukasa/following{/other_user}","gists_url":"https://api.github.com/users/Lukasa/gists{/gist_id}","starred_url":"https://api.github.com/users/Lukasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lukasa/subscriptions","organizations_url":"https://api.github.com/users/Lukasa/orgs","repos_url":"https://api.github.com/users/Lukasa/repos","events_url":"https://api.github.com/users/Lukasa/events{/privacy}","received_events_url":"https://api.github.com/users/Lukasa/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T21:48:25Z","updated_at":"2016-11-23T21:48:25Z","body":"I remain really unsure that we should tolerate content with no status codes, but clearly we have done it before so... 😕 "}}
{"actor":{"display_login":"Lukasa"}}