{"action":"created","comment":{"url":"https://api.github.com/repos/boxkite/datacats/pulls/comments/29764924","id":29764924,"diff_hunk":"@@ -814,8 +814,12 @@ def run_command(self, command, db_links=False, rw_venv=False,\n         else:\n             links = None\n \n-        return web_command(command=command, ro=ro, rw=rw, links=links,\n-                volumes_from=volumes_from, clean_up=clean_up)\n+        try:\n+            return web_command(command=command, ro=ro, rw=rw, links=links,\n+                    volumes_from=volumes_from, clean_up=clean_up)\n+        except WebCommandError as e:\n+            print 'Failed to run command %s. Logs are as follows:\\n%s' % (e.e.command, e.logs)","path":"datacats/environment.py","position":null,"original_position":10,"commit_id":"03defc487c071154209a623a3e8d50870594679d","original_commit_id":"0fa41f3305d0f88de544de27b05c4162720fc364","user":{"login":"JackMc","id":746519,"avatar_url":"https://avatars.githubusercontent.com/u/746519?v=3","gravatar_id":"","url":"https://api.github.com/users/JackMc","html_url":"https://github.com/JackMc","followers_url":"https://api.github.com/users/JackMc/followers","following_url":"https://api.github.com/users/JackMc/following{/other_user}","gists_url":"https://api.github.com/users/JackMc/gists{/gist_id}","starred_url":"https://api.github.com/users/JackMc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackMc/subscriptions","organizations_url":"https://api.github.com/users/JackMc/orgs","repos_url":"https://api.github.com/users/JackMc/repos","events_url":"https://api.github.com/users/JackMc/events{/privacy}","received_events_url":"https://api.github.com/users/JackMc/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2015-05-06T14:46:43Z","updated_at":"2015-05-06T14:46:43Z","html_url":"https://github.com/boxkite/datacats/pull/75#discussion_r29764924","pull_request_url":"https://api.github.com/repos/boxkite/datacats/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/boxkite/datacats/pulls/comments/29764924"},"html":{"href":"https://github.com/boxkite/datacats/pull/75#discussion_r29764924"},"pull_request":{"href":"https://api.github.com/repos/boxkite/datacats/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/boxkite/datacats/pulls/75","id":34761872,"html_url":"https://github.com/boxkite/datacats/pull/75","diff_url":"https://github.com/boxkite/datacats/pull/75.diff","patch_url":"https://github.com/boxkite/datacats/pull/75.patch","issue_url":"https://api.github.com/repos/boxkite/datacats/issues/75","number":75,"state":"open","locked":false,"title":"Save logs before cleanup for all run containers in case of error","user":{"login":"JackMc","id":746519,"avatar_url":"https://avatars.githubusercontent.com/u/746519?v=3","gravatar_id":"","url":"https://api.github.com/users/JackMc","html_url":"https://github.com/JackMc","followers_url":"https://api.github.com/users/JackMc/followers","following_url":"https://api.github.com/users/JackMc/following{/other_user}","gists_url":"https://api.github.com/users/JackMc/gists{/gist_id}","starred_url":"https://api.github.com/users/JackMc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackMc/subscriptions","organizations_url":"https://api.github.com/users/JackMc/orgs","repos_url":"https://api.github.com/users/JackMc/repos","events_url":"https://api.github.com/users/JackMc/events{/privacy}","received_events_url":"https://api.github.com/users/JackMc/received_events","type":"User","site_admin":false},"body":"Closes #65 ","created_at":"2015-05-05T20:10:10Z","updated_at":"2015-05-06T14:46:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac791e75c5d7f375ed79d60fa675e083adc57023","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/boxkite/datacats/pulls/75/commits","review_comments_url":"https://api.github.com/repos/boxkite/datacats/pulls/75/comments","review_comment_url":"https://api.github.com/repos/boxkite/datacats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/boxkite/datacats/issues/75/comments","statuses_url":"https://api.github.com/repos/boxkite/datacats/statuses/03defc487c071154209a623a3e8d50870594679d","head":{"label":"JackMc:save-logs-before-cleanup","ref":"save-logs-before-cleanup","sha":"03defc487c071154209a623a3e8d50870594679d","user":{"login":"JackMc","id":746519,"avatar_url":"https://avatars.githubusercontent.com/u/746519?v=3","gravatar_id":"","url":"https://api.github.com/users/JackMc","html_url":"https://github.com/JackMc","followers_url":"https://api.github.com/users/JackMc/followers","following_url":"https://api.github.com/users/JackMc/following{/other_user}","gists_url":"https://api.github.com/users/JackMc/gists{/gist_id}","starred_url":"https://api.github.com/users/JackMc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackMc/subscriptions","organizations_url":"https://api.github.com/users/JackMc/orgs","repos_url":"https://api.github.com/users/JackMc/repos","events_url":"https://api.github.com/users/JackMc/events{/privacy}","received_events_url":"https://api.github.com/users/JackMc/received_events","type":"User","site_admin":false},"repo":{"id":35044365,"name":"datacats","full_name":"JackMc/datacats","owner":{"login":"JackMc","id":746519,"avatar_url":"https://avatars.githubusercontent.com/u/746519?v=3","gravatar_id":"","url":"https://api.github.com/users/JackMc","html_url":"https://github.com/JackMc","followers_url":"https://api.github.com/users/JackMc/followers","following_url":"https://api.github.com/users/JackMc/following{/other_user}","gists_url":"https://api.github.com/users/JackMc/gists{/gist_id}","starred_url":"https://api.github.com/users/JackMc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackMc/subscriptions","organizations_url":"https://api.github.com/users/JackMc/orgs","repos_url":"https://api.github.com/users/JackMc/repos","events_url":"https://api.github.com/users/JackMc/events{/privacy}","received_events_url":"https://api.github.com/users/JackMc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JackMc/datacats","description":"Open Data development & deployment tools built on Docker","fork":true,"url":"https://api.github.com/repos/JackMc/datacats","forks_url":"https://api.github.com/repos/JackMc/datacats/forks","keys_url":"https://api.github.com/repos/JackMc/datacats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JackMc/datacats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JackMc/datacats/teams","hooks_url":"https://api.github.com/repos/JackMc/datacats/hooks","issue_events_url":"https://api.github.com/repos/JackMc/datacats/issues/events{/number}","events_url":"https://api.github.com/repos/JackMc/datacats/events","assignees_url":"https://api.github.com/repos/JackMc/datacats/assignees{/user}","branches_url":"https://api.github.com/repos/JackMc/datacats/branches{/branch}","tags_url":"https://api.github.com/repos/JackMc/datacats/tags","blobs_url":"https://api.github.com/repos/JackMc/datacats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JackMc/datacats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JackMc/datacats/git/refs{/sha}","trees_url":"https://api.github.com/repos/JackMc/datacats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JackMc/datacats/statuses/{sha}","languages_url":"https://api.github.com/repos/JackMc/datacats/languages","stargazers_url":"https://api.github.com/repos/JackMc/datacats/stargazers","contributors_url":"https://api.github.com/repos/JackMc/datacats/contributors","subscribers_url":"https://api.github.com/repos/JackMc/datacats/subscribers","subscription_url":"https://api.github.com/repos/JackMc/datacats/subscription","commits_url":"https://api.github.com/repos/JackMc/datacats/commits{/sha}","git_commits_url":"https://api.github.com/repos/JackMc/datacats/git/commits{/sha}","comments_url":"https://api.github.com/repos/JackMc/datacats/comments{/number}","issue_comment_url":"https://api.github.com/repos/JackMc/datacats/issues/comments{/number}","contents_url":"https://api.github.com/repos/JackMc/datacats/contents/{+path}","compare_url":"https://api.github.com/repos/JackMc/datacats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JackMc/datacats/merges","archive_url":"https://api.github.com/repos/JackMc/datacats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JackMc/datacats/downloads","issues_url":"https://api.github.com/repos/JackMc/datacats/issues{/number}","pulls_url":"https://api.github.com/repos/JackMc/datacats/pulls{/number}","milestones_url":"https://api.github.com/repos/JackMc/datacats/milestones{/number}","notifications_url":"https://api.github.com/repos/JackMc/datacats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JackMc/datacats/labels{/name}","releases_url":"https://api.github.com/repos/JackMc/datacats/releases{/id}","created_at":"2015-05-04T15:55:39Z","updated_at":"2015-05-06T13:42:20Z","pushed_at":"2015-05-06T14:46:39Z","git_url":"git://github.com/JackMc/datacats.git","ssh_url":"git@github.com:JackMc/datacats.git","clone_url":"https://github.com/JackMc/datacats.git","svn_url":"https://github.com/JackMc/datacats","homepage":"http://www.datacats.com","size":470,"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":"boxkite:master","ref":"master","sha":"e715ba69249359532d0261578c08d0fbb4cf4512","user":{"login":"boxkite","id":3051026,"avatar_url":"https://avatars.githubusercontent.com/u/3051026?v=3","gravatar_id":"","url":"https://api.github.com/users/boxkite","html_url":"https://github.com/boxkite","followers_url":"https://api.github.com/users/boxkite/followers","following_url":"https://api.github.com/users/boxkite/following{/other_user}","gists_url":"https://api.github.com/users/boxkite/gists{/gist_id}","starred_url":"https://api.github.com/users/boxkite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boxkite/subscriptions","organizations_url":"https://api.github.com/users/boxkite/orgs","repos_url":"https://api.github.com/users/boxkite/repos","events_url":"https://api.github.com/users/boxkite/events{/privacy}","received_events_url":"https://api.github.com/users/boxkite/received_events","type":"Organization","site_admin":false},"repo":{"id":27466453,"name":"datacats","full_name":"boxkite/datacats","owner":{"login":"boxkite","id":3051026,"avatar_url":"https://avatars.githubusercontent.com/u/3051026?v=3","gravatar_id":"","url":"https://api.github.com/users/boxkite","html_url":"https://github.com/boxkite","followers_url":"https://api.github.com/users/boxkite/followers","following_url":"https://api.github.com/users/boxkite/following{/other_user}","gists_url":"https://api.github.com/users/boxkite/gists{/gist_id}","starred_url":"https://api.github.com/users/boxkite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boxkite/subscriptions","organizations_url":"https://api.github.com/users/boxkite/orgs","repos_url":"https://api.github.com/users/boxkite/repos","events_url":"https://api.github.com/users/boxkite/events{/privacy}","received_events_url":"https://api.github.com/users/boxkite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/boxkite/datacats","description":"Open Data development & deployment tools built on Docker","fork":false,"url":"https://api.github.com/repos/boxkite/datacats","forks_url":"https://api.github.com/repos/boxkite/datacats/forks","keys_url":"https://api.github.com/repos/boxkite/datacats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boxkite/datacats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boxkite/datacats/teams","hooks_url":"https://api.github.com/repos/boxkite/datacats/hooks","issue_events_url":"https://api.github.com/repos/boxkite/datacats/issues/events{/number}","events_url":"https://api.github.com/repos/boxkite/datacats/events","assignees_url":"https://api.github.com/repos/boxkite/datacats/assignees{/user}","branches_url":"https://api.github.com/repos/boxkite/datacats/branches{/branch}","tags_url":"https://api.github.com/repos/boxkite/datacats/tags","blobs_url":"https://api.github.com/repos/boxkite/datacats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boxkite/datacats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boxkite/datacats/git/refs{/sha}","trees_url":"https://api.github.com/repos/boxkite/datacats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boxkite/datacats/statuses/{sha}","languages_url":"https://api.github.com/repos/boxkite/datacats/languages","stargazers_url":"https://api.github.com/repos/boxkite/datacats/stargazers","contributors_url":"https://api.github.com/repos/boxkite/datacats/contributors","subscribers_url":"https://api.github.com/repos/boxkite/datacats/subscribers","subscription_url":"https://api.github.com/repos/boxkite/datacats/subscription","commits_url":"https://api.github.com/repos/boxkite/datacats/commits{/sha}","git_commits_url":"https://api.github.com/repos/boxkite/datacats/git/commits{/sha}","comments_url":"https://api.github.com/repos/boxkite/datacats/comments{/number}","issue_comment_url":"https://api.github.com/repos/boxkite/datacats/issues/comments{/number}","contents_url":"https://api.github.com/repos/boxkite/datacats/contents/{+path}","compare_url":"https://api.github.com/repos/boxkite/datacats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boxkite/datacats/merges","archive_url":"https://api.github.com/repos/boxkite/datacats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boxkite/datacats/downloads","issues_url":"https://api.github.com/repos/boxkite/datacats/issues{/number}","pulls_url":"https://api.github.com/repos/boxkite/datacats/pulls{/number}","milestones_url":"https://api.github.com/repos/boxkite/datacats/milestones{/number}","notifications_url":"https://api.github.com/repos/boxkite/datacats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boxkite/datacats/labels{/name}","releases_url":"https://api.github.com/repos/boxkite/datacats/releases{/id}","created_at":"2014-12-03T03:02:49Z","updated_at":"2015-05-05T21:24:23Z","pushed_at":"2015-05-06T14:46:39Z","git_url":"git://github.com/boxkite/datacats.git","ssh_url":"git@github.com:boxkite/datacats.git","clone_url":"https://github.com/boxkite/datacats.git","svn_url":"https://github.com/boxkite/datacats","homepage":"http://www.datacats.com","size":1497,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":17,"forks":4,"open_issues":17,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/boxkite/datacats/pulls/75"},"html":{"href":"https://github.com/boxkite/datacats/pull/75"},"issue":{"href":"https://api.github.com/repos/boxkite/datacats/issues/75"},"comments":{"href":"https://api.github.com/repos/boxkite/datacats/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/boxkite/datacats/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/boxkite/datacats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/boxkite/datacats/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/boxkite/datacats/statuses/03defc487c071154209a623a3e8d50870594679d"}}}}