{"action":"created","comment":{"url":"https://api.github.com/repos/asher/chronos-python/pulls/comments/54045246","id":54045246,"diff_hunk":"@@ -152,9 +157,12 @@ def _check(self, resp, content):\n         if content:\n             try:\n                 payload = json.loads(content)\n-            except ValueError:\n-                self.logger.error(\"Response not valid json: %s\" % content)\n-                payload = content\n+            except (TypeError, ValueError):\n+                try:\n+                    payload = json.loads(content.decode('utf-8'))","path":"chronos/__init__.py","position":23,"original_position":23,"commit_id":"52ad42cb269b6a1bb11e37a615a687aa17e4343a","original_commit_id":"52ad42cb269b6a1bb11e37a615a687aa17e4343a","user":{"login":"solarkennedy","id":370205,"avatar_url":"https://avatars.githubusercontent.com/u/370205?v=3","gravatar_id":"","url":"https://api.github.com/users/solarkennedy","html_url":"https://github.com/solarkennedy","followers_url":"https://api.github.com/users/solarkennedy/followers","following_url":"https://api.github.com/users/solarkennedy/following{/other_user}","gists_url":"https://api.github.com/users/solarkennedy/gists{/gist_id}","starred_url":"https://api.github.com/users/solarkennedy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solarkennedy/subscriptions","organizations_url":"https://api.github.com/users/solarkennedy/orgs","repos_url":"https://api.github.com/users/solarkennedy/repos","events_url":"https://api.github.com/users/solarkennedy/events{/privacy}","received_events_url":"https://api.github.com/users/solarkennedy/received_events","type":"User","site_admin":false},"body":"Is there any harm in trying to decode in utf-8 all the time?","created_at":"2016-02-25T03:40:53Z","updated_at":"2016-02-25T03:40:53Z","html_url":"https://github.com/asher/chronos-python/pull/21#discussion_r54045246","pull_request_url":"https://api.github.com/repos/asher/chronos-python/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/asher/chronos-python/pulls/comments/54045246"},"html":{"href":"https://github.com/asher/chronos-python/pull/21#discussion_r54045246"},"pull_request":{"href":"https://api.github.com/repos/asher/chronos-python/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/asher/chronos-python/pulls/21","id":60104330,"html_url":"https://github.com/asher/chronos-python/pull/21","diff_url":"https://github.com/asher/chronos-python/pull/21.diff","patch_url":"https://github.com/asher/chronos-python/pull/21.patch","issue_url":"https://api.github.com/repos/asher/chronos-python/issues/21","number":21,"state":"open","locked":false,"title":"Python 3 support","user":{"login":"navidurrahman","id":120287,"avatar_url":"https://avatars.githubusercontent.com/u/120287?v=3","gravatar_id":"","url":"https://api.github.com/users/navidurrahman","html_url":"https://github.com/navidurrahman","followers_url":"https://api.github.com/users/navidurrahman/followers","following_url":"https://api.github.com/users/navidurrahman/following{/other_user}","gists_url":"https://api.github.com/users/navidurrahman/gists{/gist_id}","starred_url":"https://api.github.com/users/navidurrahman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navidurrahman/subscriptions","organizations_url":"https://api.github.com/users/navidurrahman/orgs","repos_url":"https://api.github.com/users/navidurrahman/repos","events_url":"https://api.github.com/users/navidurrahman/events{/privacy}","received_events_url":"https://api.github.com/users/navidurrahman/received_events","type":"User","site_admin":false},"body":"# Support for python 3 and removed chronos legacy version\r\n\r\n## Change default chronos version\r\n- Mesosphere removed chronos version 2.3.4 for ubuntu 12.04.\r\n\r\n- Tested with chronos 2.4.0 and ubuntu 12.04\r\n\r\n## Python 3 support\r\n\r\n- Added the python version 3.5 in Travis configuration.","created_at":"2016-02-21T21:15:24Z","updated_at":"2016-02-25T03:40:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3eea6efc5a26025d8e0bd8309e057dd60e57e526","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/asher/chronos-python/pulls/21/commits","review_comments_url":"https://api.github.com/repos/asher/chronos-python/pulls/21/comments","review_comment_url":"https://api.github.com/repos/asher/chronos-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/asher/chronos-python/issues/21/comments","statuses_url":"https://api.github.com/repos/asher/chronos-python/statuses/52ad42cb269b6a1bb11e37a615a687aa17e4343a","head":{"label":"navidurrahman:python3_support","ref":"python3_support","sha":"52ad42cb269b6a1bb11e37a615a687aa17e4343a","user":{"login":"navidurrahman","id":120287,"avatar_url":"https://avatars.githubusercontent.com/u/120287?v=3","gravatar_id":"","url":"https://api.github.com/users/navidurrahman","html_url":"https://github.com/navidurrahman","followers_url":"https://api.github.com/users/navidurrahman/followers","following_url":"https://api.github.com/users/navidurrahman/following{/other_user}","gists_url":"https://api.github.com/users/navidurrahman/gists{/gist_id}","starred_url":"https://api.github.com/users/navidurrahman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navidurrahman/subscriptions","organizations_url":"https://api.github.com/users/navidurrahman/orgs","repos_url":"https://api.github.com/users/navidurrahman/repos","events_url":"https://api.github.com/users/navidurrahman/events{/privacy}","received_events_url":"https://api.github.com/users/navidurrahman/received_events","type":"User","site_admin":false},"repo":{"id":46724835,"name":"chronos-python","full_name":"navidurrahman/chronos-python","owner":{"login":"navidurrahman","id":120287,"avatar_url":"https://avatars.githubusercontent.com/u/120287?v=3","gravatar_id":"","url":"https://api.github.com/users/navidurrahman","html_url":"https://github.com/navidurrahman","followers_url":"https://api.github.com/users/navidurrahman/followers","following_url":"https://api.github.com/users/navidurrahman/following{/other_user}","gists_url":"https://api.github.com/users/navidurrahman/gists{/gist_id}","starred_url":"https://api.github.com/users/navidurrahman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navidurrahman/subscriptions","organizations_url":"https://api.github.com/users/navidurrahman/orgs","repos_url":"https://api.github.com/users/navidurrahman/repos","events_url":"https://api.github.com/users/navidurrahman/events{/privacy}","received_events_url":"https://api.github.com/users/navidurrahman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/navidurrahman/chronos-python","description":"python api for the chronos (for apache mesos) job scheduler","fork":true,"url":"https://api.github.com/repos/navidurrahman/chronos-python","forks_url":"https://api.github.com/repos/navidurrahman/chronos-python/forks","keys_url":"https://api.github.com/repos/navidurrahman/chronos-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/navidurrahman/chronos-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/navidurrahman/chronos-python/teams","hooks_url":"https://api.github.com/repos/navidurrahman/chronos-python/hooks","issue_events_url":"https://api.github.com/repos/navidurrahman/chronos-python/issues/events{/number}","events_url":"https://api.github.com/repos/navidurrahman/chronos-python/events","assignees_url":"https://api.github.com/repos/navidurrahman/chronos-python/assignees{/user}","branches_url":"https://api.github.com/repos/navidurrahman/chronos-python/branches{/branch}","tags_url":"https://api.github.com/repos/navidurrahman/chronos-python/tags","blobs_url":"https://api.github.com/repos/navidurrahman/chronos-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/navidurrahman/chronos-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/navidurrahman/chronos-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/navidurrahman/chronos-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/navidurrahman/chronos-python/statuses/{sha}","languages_url":"https://api.github.com/repos/navidurrahman/chronos-python/languages","stargazers_url":"https://api.github.com/repos/navidurrahman/chronos-python/stargazers","contributors_url":"https://api.github.com/repos/navidurrahman/chronos-python/contributors","subscribers_url":"https://api.github.com/repos/navidurrahman/chronos-python/subscribers","subscription_url":"https://api.github.com/repos/navidurrahman/chronos-python/subscription","commits_url":"https://api.github.com/repos/navidurrahman/chronos-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/navidurrahman/chronos-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/navidurrahman/chronos-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/navidurrahman/chronos-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/navidurrahman/chronos-python/contents/{+path}","compare_url":"https://api.github.com/repos/navidurrahman/chronos-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/navidurrahman/chronos-python/merges","archive_url":"https://api.github.com/repos/navidurrahman/chronos-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/navidurrahman/chronos-python/downloads","issues_url":"https://api.github.com/repos/navidurrahman/chronos-python/issues{/number}","pulls_url":"https://api.github.com/repos/navidurrahman/chronos-python/pulls{/number}","milestones_url":"https://api.github.com/repos/navidurrahman/chronos-python/milestones{/number}","notifications_url":"https://api.github.com/repos/navidurrahman/chronos-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/navidurrahman/chronos-python/labels{/name}","releases_url":"https://api.github.com/repos/navidurrahman/chronos-python/releases{/id}","deployments_url":"https://api.github.com/repos/navidurrahman/chronos-python/deployments","created_at":"2015-11-23T14:14:42Z","updated_at":"2016-02-21T14:29:06Z","pushed_at":"2016-02-24T18:57:40Z","git_url":"git://github.com/navidurrahman/chronos-python.git","ssh_url":"git@github.com:navidurrahman/chronos-python.git","clone_url":"https://github.com/navidurrahman/chronos-python.git","svn_url":"https://github.com/navidurrahman/chronos-python","homepage":"","size":40,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"asher:master","ref":"master","sha":"1473f6ded5380705ad4866a40f84d0604d60c0ef","user":{"login":"asher","id":59994,"avatar_url":"https://avatars.githubusercontent.com/u/59994?v=3","gravatar_id":"","url":"https://api.github.com/users/asher","html_url":"https://github.com/asher","followers_url":"https://api.github.com/users/asher/followers","following_url":"https://api.github.com/users/asher/following{/other_user}","gists_url":"https://api.github.com/users/asher/gists{/gist_id}","starred_url":"https://api.github.com/users/asher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asher/subscriptions","organizations_url":"https://api.github.com/users/asher/orgs","repos_url":"https://api.github.com/users/asher/repos","events_url":"https://api.github.com/users/asher/events{/privacy}","received_events_url":"https://api.github.com/users/asher/received_events","type":"User","site_admin":false},"repo":{"id":16744987,"name":"chronos-python","full_name":"asher/chronos-python","owner":{"login":"asher","id":59994,"avatar_url":"https://avatars.githubusercontent.com/u/59994?v=3","gravatar_id":"","url":"https://api.github.com/users/asher","html_url":"https://github.com/asher","followers_url":"https://api.github.com/users/asher/followers","following_url":"https://api.github.com/users/asher/following{/other_user}","gists_url":"https://api.github.com/users/asher/gists{/gist_id}","starred_url":"https://api.github.com/users/asher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asher/subscriptions","organizations_url":"https://api.github.com/users/asher/orgs","repos_url":"https://api.github.com/users/asher/repos","events_url":"https://api.github.com/users/asher/events{/privacy}","received_events_url":"https://api.github.com/users/asher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asher/chronos-python","description":"python api for the chronos (for apache mesos) job scheduler","fork":false,"url":"https://api.github.com/repos/asher/chronos-python","forks_url":"https://api.github.com/repos/asher/chronos-python/forks","keys_url":"https://api.github.com/repos/asher/chronos-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asher/chronos-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asher/chronos-python/teams","hooks_url":"https://api.github.com/repos/asher/chronos-python/hooks","issue_events_url":"https://api.github.com/repos/asher/chronos-python/issues/events{/number}","events_url":"https://api.github.com/repos/asher/chronos-python/events","assignees_url":"https://api.github.com/repos/asher/chronos-python/assignees{/user}","branches_url":"https://api.github.com/repos/asher/chronos-python/branches{/branch}","tags_url":"https://api.github.com/repos/asher/chronos-python/tags","blobs_url":"https://api.github.com/repos/asher/chronos-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asher/chronos-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asher/chronos-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/asher/chronos-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asher/chronos-python/statuses/{sha}","languages_url":"https://api.github.com/repos/asher/chronos-python/languages","stargazers_url":"https://api.github.com/repos/asher/chronos-python/stargazers","contributors_url":"https://api.github.com/repos/asher/chronos-python/contributors","subscribers_url":"https://api.github.com/repos/asher/chronos-python/subscribers","subscription_url":"https://api.github.com/repos/asher/chronos-python/subscription","commits_url":"https://api.github.com/repos/asher/chronos-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/asher/chronos-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/asher/chronos-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/asher/chronos-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/asher/chronos-python/contents/{+path}","compare_url":"https://api.github.com/repos/asher/chronos-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asher/chronos-python/merges","archive_url":"https://api.github.com/repos/asher/chronos-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asher/chronos-python/downloads","issues_url":"https://api.github.com/repos/asher/chronos-python/issues{/number}","pulls_url":"https://api.github.com/repos/asher/chronos-python/pulls{/number}","milestones_url":"https://api.github.com/repos/asher/chronos-python/milestones{/number}","notifications_url":"https://api.github.com/repos/asher/chronos-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asher/chronos-python/labels{/name}","releases_url":"https://api.github.com/repos/asher/chronos-python/releases{/id}","deployments_url":"https://api.github.com/repos/asher/chronos-python/deployments","created_at":"2014-02-11T20:49:35Z","updated_at":"2016-02-19T11:26:35Z","pushed_at":"2016-02-24T18:57:41Z","git_url":"git://github.com/asher/chronos-python.git","ssh_url":"git@github.com:asher/chronos-python.git","clone_url":"https://github.com/asher/chronos-python.git","svn_url":"https://github.com/asher/chronos-python","homepage":"","size":38,"stargazers_count":19,"watchers_count":19,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":1,"forks":11,"open_issues":1,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/asher/chronos-python/pulls/21"},"html":{"href":"https://github.com/asher/chronos-python/pull/21"},"issue":{"href":"https://api.github.com/repos/asher/chronos-python/issues/21"},"comments":{"href":"https://api.github.com/repos/asher/chronos-python/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/asher/chronos-python/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/asher/chronos-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/asher/chronos-python/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/asher/chronos-python/statuses/52ad42cb269b6a1bb11e37a615a687aa17e4343a"}}}}