{"action":"created","comment":{"url":"https://api.github.com/repos/dcos/dcos-cli/pulls/comments/91406517","pull_request_review_id":11915149,"id":91406517,"diff_hunk":"@@ -39,4 +45,34 @@ def start_service(self, package_name, package_version, options):\n             json['packageVersion'] = package_version\n         if options is not None:\n             json['options'] = options\n-        return self.cosmos.call_endpoint(endpoint, json=json)\n+        try:\n+            return self.cosmos.call_endpoint(endpoint, json=json)\n+        except DCOSAuthenticationException:\n+            raise\n+        except DCOSAuthorizationException:\n+            raise","path":"dcos/servicemanager.py","position":53,"original_position":53,"commit_id":"120f9dc3d991154361b58e8b53f04d27d263d3c3","original_commit_id":"120f9dc3d991154361b58e8b53f04d27d263d3c3","user":{"login":"cruhland","id":1936682,"avatar_url":"https://avatars.githubusercontent.com/u/1936682?v=3","gravatar_id":"","url":"https://api.github.com/users/cruhland","html_url":"https://github.com/cruhland","followers_url":"https://api.github.com/users/cruhland/followers","following_url":"https://api.github.com/users/cruhland/following{/other_user}","gists_url":"https://api.github.com/users/cruhland/gists{/gist_id}","starred_url":"https://api.github.com/users/cruhland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cruhland/subscriptions","organizations_url":"https://api.github.com/users/cruhland/orgs","repos_url":"https://api.github.com/users/cruhland/repos","events_url":"https://api.github.com/users/cruhland/events{/privacy}","received_events_url":"https://api.github.com/users/cruhland/received_events","type":"User","site_admin":false},"body":"You can combine these two:\r\n\r\n```python\r\nexcept (DCOSAuthenticationException, DCOSAuthorizationException):\r\n    raise\r\n```\r\n\r\n(according to https://docs.python.org/3/tutorial/errors.html#handling-exceptions)","created_at":"2016-12-07T22:52:57Z","updated_at":"2016-12-07T22:52:58Z","html_url":"https://github.com/dcos/dcos-cli/pull/850#discussion_r91406517","pull_request_url":"https://api.github.com/repos/dcos/dcos-cli/pulls/850","_links":{"self":{"href":"https://api.github.com/repos/dcos/dcos-cli/pulls/comments/91406517"},"html":{"href":"https://github.com/dcos/dcos-cli/pull/850#discussion_r91406517"},"pull_request":{"href":"https://api.github.com/repos/dcos/dcos-cli/pulls/850"}}},"pull_request":{"url":"https://api.github.com/repos/dcos/dcos-cli/pulls/850","id":96366504,"html_url":"https://github.com/dcos/dcos-cli/pull/850","diff_url":"https://github.com/dcos/dcos-cli/pull/850.diff","patch_url":"https://github.com/dcos/dcos-cli/pull/850.patch","issue_url":"https://api.github.com/repos/dcos/dcos-cli/issues/850","number":850,"state":"open","locked":false,"title":"'Service Start' Implementation","user":{"login":"larioj","id":9968087,"avatar_url":"https://avatars.githubusercontent.com/u/9968087?v=3","gravatar_id":"","url":"https://api.github.com/users/larioj","html_url":"https://github.com/larioj","followers_url":"https://api.github.com/users/larioj/followers","following_url":"https://api.github.com/users/larioj/following{/other_user}","gists_url":"https://api.github.com/users/larioj/gists{/gist_id}","starred_url":"https://api.github.com/users/larioj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larioj/subscriptions","organizations_url":"https://api.github.com/users/larioj/orgs","repos_url":"https://api.github.com/users/larioj/repos","events_url":"https://api.github.com/users/larioj/events{/privacy}","received_events_url":"https://api.github.com/users/larioj/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-02T22:46:31Z","updated_at":"2016-12-07T22:52:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e1bcd02fef5b4de096e8a55d53393519bfa0853","assignee":{"login":"jsancio","id":794394,"avatar_url":"https://avatars.githubusercontent.com/u/794394?v=3","gravatar_id":"","url":"https://api.github.com/users/jsancio","html_url":"https://github.com/jsancio","followers_url":"https://api.github.com/users/jsancio/followers","following_url":"https://api.github.com/users/jsancio/following{/other_user}","gists_url":"https://api.github.com/users/jsancio/gists{/gist_id}","starred_url":"https://api.github.com/users/jsancio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsancio/subscriptions","organizations_url":"https://api.github.com/users/jsancio/orgs","repos_url":"https://api.github.com/users/jsancio/repos","events_url":"https://api.github.com/users/jsancio/events{/privacy}","received_events_url":"https://api.github.com/users/jsancio/received_events","type":"User","site_admin":false},"assignees":[{"login":"jsancio","id":794394,"avatar_url":"https://avatars.githubusercontent.com/u/794394?v=3","gravatar_id":"","url":"https://api.github.com/users/jsancio","html_url":"https://github.com/jsancio","followers_url":"https://api.github.com/users/jsancio/followers","following_url":"https://api.github.com/users/jsancio/following{/other_user}","gists_url":"https://api.github.com/users/jsancio/gists{/gist_id}","starred_url":"https://api.github.com/users/jsancio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsancio/subscriptions","organizations_url":"https://api.github.com/users/jsancio/orgs","repos_url":"https://api.github.com/users/jsancio/repos","events_url":"https://api.github.com/users/jsancio/events{/privacy}","received_events_url":"https://api.github.com/users/jsancio/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/dcos/dcos-cli/pulls/850/commits","review_comments_url":"https://api.github.com/repos/dcos/dcos-cli/pulls/850/comments","review_comment_url":"https://api.github.com/repos/dcos/dcos-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dcos/dcos-cli/issues/850/comments","statuses_url":"https://api.github.com/repos/dcos/dcos-cli/statuses/120f9dc3d991154361b58e8b53f04d27d263d3c3","head":{"label":"larioj:ss","ref":"ss","sha":"120f9dc3d991154361b58e8b53f04d27d263d3c3","user":{"login":"larioj","id":9968087,"avatar_url":"https://avatars.githubusercontent.com/u/9968087?v=3","gravatar_id":"","url":"https://api.github.com/users/larioj","html_url":"https://github.com/larioj","followers_url":"https://api.github.com/users/larioj/followers","following_url":"https://api.github.com/users/larioj/following{/other_user}","gists_url":"https://api.github.com/users/larioj/gists{/gist_id}","starred_url":"https://api.github.com/users/larioj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larioj/subscriptions","organizations_url":"https://api.github.com/users/larioj/orgs","repos_url":"https://api.github.com/users/larioj/repos","events_url":"https://api.github.com/users/larioj/events{/privacy}","received_events_url":"https://api.github.com/users/larioj/received_events","type":"User","site_admin":false},"repo":{"id":62906654,"name":"dcos-cli","full_name":"larioj/dcos-cli","owner":{"login":"larioj","id":9968087,"avatar_url":"https://avatars.githubusercontent.com/u/9968087?v=3","gravatar_id":"","url":"https://api.github.com/users/larioj","html_url":"https://github.com/larioj","followers_url":"https://api.github.com/users/larioj/followers","following_url":"https://api.github.com/users/larioj/following{/other_user}","gists_url":"https://api.github.com/users/larioj/gists{/gist_id}","starred_url":"https://api.github.com/users/larioj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larioj/subscriptions","organizations_url":"https://api.github.com/users/larioj/orgs","repos_url":"https://api.github.com/users/larioj/repos","events_url":"https://api.github.com/users/larioj/events{/privacy}","received_events_url":"https://api.github.com/users/larioj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/larioj/dcos-cli","description":"The command line for your datacenter! ","fork":true,"url":"https://api.github.com/repos/larioj/dcos-cli","forks_url":"https://api.github.com/repos/larioj/dcos-cli/forks","keys_url":"https://api.github.com/repos/larioj/dcos-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/larioj/dcos-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/larioj/dcos-cli/teams","hooks_url":"https://api.github.com/repos/larioj/dcos-cli/hooks","issue_events_url":"https://api.github.com/repos/larioj/dcos-cli/issues/events{/number}","events_url":"https://api.github.com/repos/larioj/dcos-cli/events","assignees_url":"https://api.github.com/repos/larioj/dcos-cli/assignees{/user}","branches_url":"https://api.github.com/repos/larioj/dcos-cli/branches{/branch}","tags_url":"https://api.github.com/repos/larioj/dcos-cli/tags","blobs_url":"https://api.github.com/repos/larioj/dcos-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/larioj/dcos-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/larioj/dcos-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/larioj/dcos-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/larioj/dcos-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/larioj/dcos-cli/languages","stargazers_url":"https://api.github.com/repos/larioj/dcos-cli/stargazers","contributors_url":"https://api.github.com/repos/larioj/dcos-cli/contributors","subscribers_url":"https://api.github.com/repos/larioj/dcos-cli/subscribers","subscription_url":"https://api.github.com/repos/larioj/dcos-cli/subscription","commits_url":"https://api.github.com/repos/larioj/dcos-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/larioj/dcos-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/larioj/dcos-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/larioj/dcos-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/larioj/dcos-cli/contents/{+path}","compare_url":"https://api.github.com/repos/larioj/dcos-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/larioj/dcos-cli/merges","archive_url":"https://api.github.com/repos/larioj/dcos-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/larioj/dcos-cli/downloads","issues_url":"https://api.github.com/repos/larioj/dcos-cli/issues{/number}","pulls_url":"https://api.github.com/repos/larioj/dcos-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/larioj/dcos-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/larioj/dcos-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/larioj/dcos-cli/labels{/name}","releases_url":"https://api.github.com/repos/larioj/dcos-cli/releases{/id}","deployments_url":"https://api.github.com/repos/larioj/dcos-cli/deployments","created_at":"2016-07-08T17:47:41Z","updated_at":"2016-07-08T17:47:43Z","pushed_at":"2016-12-06T21:51:20Z","git_url":"git://github.com/larioj/dcos-cli.git","ssh_url":"git@github.com:larioj/dcos-cli.git","clone_url":"https://github.com/larioj/dcos-cli.git","svn_url":"https://github.com/larioj/dcos-cli","homepage":"http://docs.mesosphere.com/using/cli/","size":2317,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"dcos:new-install","ref":"new-install","sha":"1b4f60a3ebcc9e79bb8c8cf73e853a8bf770d5d2","user":{"login":"dcos","id":17648048,"avatar_url":"https://avatars.githubusercontent.com/u/17648048?v=3","gravatar_id":"","url":"https://api.github.com/users/dcos","html_url":"https://github.com/dcos","followers_url":"https://api.github.com/users/dcos/followers","following_url":"https://api.github.com/users/dcos/following{/other_user}","gists_url":"https://api.github.com/users/dcos/gists{/gist_id}","starred_url":"https://api.github.com/users/dcos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcos/subscriptions","organizations_url":"https://api.github.com/users/dcos/orgs","repos_url":"https://api.github.com/users/dcos/repos","events_url":"https://api.github.com/users/dcos/events{/privacy}","received_events_url":"https://api.github.com/users/dcos/received_events","type":"Organization","site_admin":false},"repo":{"id":26653348,"name":"dcos-cli","full_name":"dcos/dcos-cli","owner":{"login":"dcos","id":17648048,"avatar_url":"https://avatars.githubusercontent.com/u/17648048?v=3","gravatar_id":"","url":"https://api.github.com/users/dcos","html_url":"https://github.com/dcos","followers_url":"https://api.github.com/users/dcos/followers","following_url":"https://api.github.com/users/dcos/following{/other_user}","gists_url":"https://api.github.com/users/dcos/gists{/gist_id}","starred_url":"https://api.github.com/users/dcos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcos/subscriptions","organizations_url":"https://api.github.com/users/dcos/orgs","repos_url":"https://api.github.com/users/dcos/repos","events_url":"https://api.github.com/users/dcos/events{/privacy}","received_events_url":"https://api.github.com/users/dcos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dcos/dcos-cli","description":"The command line for your datacenter! ","fork":false,"url":"https://api.github.com/repos/dcos/dcos-cli","forks_url":"https://api.github.com/repos/dcos/dcos-cli/forks","keys_url":"https://api.github.com/repos/dcos/dcos-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dcos/dcos-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dcos/dcos-cli/teams","hooks_url":"https://api.github.com/repos/dcos/dcos-cli/hooks","issue_events_url":"https://api.github.com/repos/dcos/dcos-cli/issues/events{/number}","events_url":"https://api.github.com/repos/dcos/dcos-cli/events","assignees_url":"https://api.github.com/repos/dcos/dcos-cli/assignees{/user}","branches_url":"https://api.github.com/repos/dcos/dcos-cli/branches{/branch}","tags_url":"https://api.github.com/repos/dcos/dcos-cli/tags","blobs_url":"https://api.github.com/repos/dcos/dcos-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dcos/dcos-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dcos/dcos-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/dcos/dcos-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dcos/dcos-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/dcos/dcos-cli/languages","stargazers_url":"https://api.github.com/repos/dcos/dcos-cli/stargazers","contributors_url":"https://api.github.com/repos/dcos/dcos-cli/contributors","subscribers_url":"https://api.github.com/repos/dcos/dcos-cli/subscribers","subscription_url":"https://api.github.com/repos/dcos/dcos-cli/subscription","commits_url":"https://api.github.com/repos/dcos/dcos-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/dcos/dcos-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/dcos/dcos-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/dcos/dcos-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/dcos/dcos-cli/contents/{+path}","compare_url":"https://api.github.com/repos/dcos/dcos-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dcos/dcos-cli/merges","archive_url":"https://api.github.com/repos/dcos/dcos-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dcos/dcos-cli/downloads","issues_url":"https://api.github.com/repos/dcos/dcos-cli/issues{/number}","pulls_url":"https://api.github.com/repos/dcos/dcos-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/dcos/dcos-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/dcos/dcos-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dcos/dcos-cli/labels{/name}","releases_url":"https://api.github.com/repos/dcos/dcos-cli/releases{/id}","deployments_url":"https://api.github.com/repos/dcos/dcos-cli/deployments","created_at":"2014-11-14T19:11:48Z","updated_at":"2016-12-06T06:48:09Z","pushed_at":"2016-12-07T22:47:00Z","git_url":"git://github.com/dcos/dcos-cli.git","ssh_url":"git@github.com:dcos/dcos-cli.git","clone_url":"https://github.com/dcos/dcos-cli.git","svn_url":"https://github.com/dcos/dcos-cli","homepage":"https://dcos.io/docs/latest/usage/cli/","size":11279,"stargazers_count":178,"watchers_count":178,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":82,"mirror_url":null,"open_issues_count":44,"forks":82,"open_issues":44,"watchers":178,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dcos/dcos-cli/pulls/850"},"html":{"href":"https://github.com/dcos/dcos-cli/pull/850"},"issue":{"href":"https://api.github.com/repos/dcos/dcos-cli/issues/850"},"comments":{"href":"https://api.github.com/repos/dcos/dcos-cli/issues/850/comments"},"review_comments":{"href":"https://api.github.com/repos/dcos/dcos-cli/pulls/850/comments"},"review_comment":{"href":"https://api.github.com/repos/dcos/dcos-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dcos/dcos-cli/pulls/850/commits"},"statuses":{"href":"https://api.github.com/repos/dcos/dcos-cli/statuses/120f9dc3d991154361b58e8b53f04d27d263d3c3"}}}}
{"actor":{"display_login":"cruhland"}}