{"action":"created","comment":{"url":"https://api.github.com/repos/getnikola/nikola/pulls/comments/117629178","pull_request_review_id":39353117,"id":117629178,"diff_hunk":"@@ -410,5 +413,12 @@ def levenshtein(s1, s2):\n     return previous_row[-1]\n \n \n+def _print_exception():\n+    \"\"\"Print an exception in a friendlier, shorter style.\"\"\"\n+    etype, evalue, _ = sys.exc_info()\n+    LOGGER.error(''.join(traceback.format_exception(etype, evalue, None, limit=0, chain=False)).strip())\n+    LOGGER.notice(\"To see more details, run Nikola in debug mode (set environment variable NIKOLA_DEBUG=1)\")","path":"nikola/__main__.py","position":31,"original_position":31,"commit_id":"2b8b437ebc3c3dfaa30897d20f53db7a22881dd6","original_commit_id":"2b8b437ebc3c3dfaa30897d20f53db7a22881dd6","user":{"login":"felixfontein","id":5781356,"avatar_url":"https://avatars3.githubusercontent.com/u/5781356?v=3","gravatar_id":"","url":"https://api.github.com/users/felixfontein","html_url":"https://github.com/felixfontein","followers_url":"https://api.github.com/users/felixfontein/followers","following_url":"https://api.github.com/users/felixfontein/following{/other_user}","gists_url":"https://api.github.com/users/felixfontein/gists{/gist_id}","starred_url":"https://api.github.com/users/felixfontein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixfontein/subscriptions","organizations_url":"https://api.github.com/users/felixfontein/orgs","repos_url":"https://api.github.com/users/felixfontein/repos","events_url":"https://api.github.com/users/felixfontein/events{/privacy}","received_events_url":"https://api.github.com/users/felixfontein/received_events","type":"User","site_admin":false},"body":"Maybe only print this if debug mode isn't already enabled?","created_at":"2017-05-21T10:23:55Z","updated_at":"2017-05-21T10:23:55Z","html_url":"https://github.com/getnikola/nikola/pull/2782#discussion_r117629178","pull_request_url":"https://api.github.com/repos/getnikola/nikola/pulls/2782","_links":{"self":{"href":"https://api.github.com/repos/getnikola/nikola/pulls/comments/117629178"},"html":{"href":"https://github.com/getnikola/nikola/pull/2782#discussion_r117629178"},"pull_request":{"href":"https://api.github.com/repos/getnikola/nikola/pulls/2782"}}},"pull_request":{"url":"https://api.github.com/repos/getnikola/nikola/pulls/2782","id":121652269,"html_url":"https://github.com/getnikola/nikola/pull/2782","diff_url":"https://github.com/getnikola/nikola/pull/2782.diff","patch_url":"https://github.com/getnikola/nikola/pull/2782.patch","issue_url":"https://api.github.com/repos/getnikola/nikola/issues/2782","number":2782,"state":"open","locked":false,"title":"Show last exception text and NIKOLA_DEBUG explanation (#2774 #2771)","user":{"login":"Kwpolska","id":327323,"avatar_url":"https://avatars2.githubusercontent.com/u/327323?v=3","gravatar_id":"","url":"https://api.github.com/users/Kwpolska","html_url":"https://github.com/Kwpolska","followers_url":"https://api.github.com/users/Kwpolska/followers","following_url":"https://api.github.com/users/Kwpolska/following{/other_user}","gists_url":"https://api.github.com/users/Kwpolska/gists{/gist_id}","starred_url":"https://api.github.com/users/Kwpolska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kwpolska/subscriptions","organizations_url":"https://api.github.com/users/Kwpolska/orgs","repos_url":"https://api.github.com/users/Kwpolska/repos","events_url":"https://api.github.com/users/Kwpolska/events{/privacy}","received_events_url":"https://api.github.com/users/Kwpolska/received_events","type":"User","site_admin":false},"body":"This improves #2771 and #2774. It shows the text of only the last exception, and advertises NIKOLA_DEBUG=1.\n\n(We can’t rely on logging from other places, because not all exceptions come from within Nikola itself)","created_at":"2017-05-21T08:18:56Z","updated_at":"2017-05-21T10:23:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3517cd93f68dd89b32f742a1335fbd9a9636a2e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ralsina","id":1579,"avatar_url":"https://avatars2.githubusercontent.com/u/1579?v=3","gravatar_id":"","url":"https://api.github.com/users/ralsina","html_url":"https://github.com/ralsina","followers_url":"https://api.github.com/users/ralsina/followers","following_url":"https://api.github.com/users/ralsina/following{/other_user}","gists_url":"https://api.github.com/users/ralsina/gists{/gist_id}","starred_url":"https://api.github.com/users/ralsina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralsina/subscriptions","organizations_url":"https://api.github.com/users/ralsina/orgs","repos_url":"https://api.github.com/users/ralsina/repos","events_url":"https://api.github.com/users/ralsina/events{/privacy}","received_events_url":"https://api.github.com/users/ralsina/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/getnikola/nikola/pulls/2782/commits","review_comments_url":"https://api.github.com/repos/getnikola/nikola/pulls/2782/comments","review_comment_url":"https://api.github.com/repos/getnikola/nikola/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getnikola/nikola/issues/2782/comments","statuses_url":"https://api.github.com/repos/getnikola/nikola/statuses/2b8b437ebc3c3dfaa30897d20f53db7a22881dd6","head":{"label":"getnikola:better-errors-than-windows","ref":"better-errors-than-windows","sha":"2b8b437ebc3c3dfaa30897d20f53db7a22881dd6","user":{"login":"getnikola","id":5413476,"avatar_url":"https://avatars3.githubusercontent.com/u/5413476?v=3","gravatar_id":"","url":"https://api.github.com/users/getnikola","html_url":"https://github.com/getnikola","followers_url":"https://api.github.com/users/getnikola/followers","following_url":"https://api.github.com/users/getnikola/following{/other_user}","gists_url":"https://api.github.com/users/getnikola/gists{/gist_id}","starred_url":"https://api.github.com/users/getnikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getnikola/subscriptions","organizations_url":"https://api.github.com/users/getnikola/orgs","repos_url":"https://api.github.com/users/getnikola/repos","events_url":"https://api.github.com/users/getnikola/events{/privacy}","received_events_url":"https://api.github.com/users/getnikola/received_events","type":"Organization","site_admin":false},"repo":{"id":4025121,"name":"nikola","full_name":"getnikola/nikola","owner":{"login":"getnikola","id":5413476,"avatar_url":"https://avatars3.githubusercontent.com/u/5413476?v=3","gravatar_id":"","url":"https://api.github.com/users/getnikola","html_url":"https://github.com/getnikola","followers_url":"https://api.github.com/users/getnikola/followers","following_url":"https://api.github.com/users/getnikola/following{/other_user}","gists_url":"https://api.github.com/users/getnikola/gists{/gist_id}","starred_url":"https://api.github.com/users/getnikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getnikola/subscriptions","organizations_url":"https://api.github.com/users/getnikola/orgs","repos_url":"https://api.github.com/users/getnikola/repos","events_url":"https://api.github.com/users/getnikola/events{/privacy}","received_events_url":"https://api.github.com/users/getnikola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getnikola/nikola","description":"A static website and blog generator","fork":false,"url":"https://api.github.com/repos/getnikola/nikola","forks_url":"https://api.github.com/repos/getnikola/nikola/forks","keys_url":"https://api.github.com/repos/getnikola/nikola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getnikola/nikola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getnikola/nikola/teams","hooks_url":"https://api.github.com/repos/getnikola/nikola/hooks","issue_events_url":"https://api.github.com/repos/getnikola/nikola/issues/events{/number}","events_url":"https://api.github.com/repos/getnikola/nikola/events","assignees_url":"https://api.github.com/repos/getnikola/nikola/assignees{/user}","branches_url":"https://api.github.com/repos/getnikola/nikola/branches{/branch}","tags_url":"https://api.github.com/repos/getnikola/nikola/tags","blobs_url":"https://api.github.com/repos/getnikola/nikola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getnikola/nikola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getnikola/nikola/git/refs{/sha}","trees_url":"https://api.github.com/repos/getnikola/nikola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getnikola/nikola/statuses/{sha}","languages_url":"https://api.github.com/repos/getnikola/nikola/languages","stargazers_url":"https://api.github.com/repos/getnikola/nikola/stargazers","contributors_url":"https://api.github.com/repos/getnikola/nikola/contributors","subscribers_url":"https://api.github.com/repos/getnikola/nikola/subscribers","subscription_url":"https://api.github.com/repos/getnikola/nikola/subscription","commits_url":"https://api.github.com/repos/getnikola/nikola/commits{/sha}","git_commits_url":"https://api.github.com/repos/getnikola/nikola/git/commits{/sha}","comments_url":"https://api.github.com/repos/getnikola/nikola/comments{/number}","issue_comment_url":"https://api.github.com/repos/getnikola/nikola/issues/comments{/number}","contents_url":"https://api.github.com/repos/getnikola/nikola/contents/{+path}","compare_url":"https://api.github.com/repos/getnikola/nikola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getnikola/nikola/merges","archive_url":"https://api.github.com/repos/getnikola/nikola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getnikola/nikola/downloads","issues_url":"https://api.github.com/repos/getnikola/nikola/issues{/number}","pulls_url":"https://api.github.com/repos/getnikola/nikola/pulls{/number}","milestones_url":"https://api.github.com/repos/getnikola/nikola/milestones{/number}","notifications_url":"https://api.github.com/repos/getnikola/nikola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getnikola/nikola/labels{/name}","releases_url":"https://api.github.com/repos/getnikola/nikola/releases{/id}","deployments_url":"https://api.github.com/repos/getnikola/nikola/deployments","created_at":"2012-04-14T13:53:22Z","updated_at":"2017-05-17T22:34:23Z","pushed_at":"2017-05-21T10:20:06Z","git_url":"git://github.com/getnikola/nikola.git","ssh_url":"git@github.com:getnikola/nikola.git","clone_url":"https://github.com/getnikola/nikola.git","svn_url":"https://github.com/getnikola/nikola","homepage":"https://getnikola.com/","size":26106,"stargazers_count":1204,"watchers_count":1204,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":302,"mirror_url":null,"open_issues_count":71,"forks":302,"open_issues":71,"watchers":1204,"default_branch":"master"}},"base":{"label":"getnikola:master","ref":"master","sha":"a54a3e1d2c9fc9445ae6047359fa8bfcc17152d3","user":{"login":"getnikola","id":5413476,"avatar_url":"https://avatars3.githubusercontent.com/u/5413476?v=3","gravatar_id":"","url":"https://api.github.com/users/getnikola","html_url":"https://github.com/getnikola","followers_url":"https://api.github.com/users/getnikola/followers","following_url":"https://api.github.com/users/getnikola/following{/other_user}","gists_url":"https://api.github.com/users/getnikola/gists{/gist_id}","starred_url":"https://api.github.com/users/getnikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getnikola/subscriptions","organizations_url":"https://api.github.com/users/getnikola/orgs","repos_url":"https://api.github.com/users/getnikola/repos","events_url":"https://api.github.com/users/getnikola/events{/privacy}","received_events_url":"https://api.github.com/users/getnikola/received_events","type":"Organization","site_admin":false},"repo":{"id":4025121,"name":"nikola","full_name":"getnikola/nikola","owner":{"login":"getnikola","id":5413476,"avatar_url":"https://avatars3.githubusercontent.com/u/5413476?v=3","gravatar_id":"","url":"https://api.github.com/users/getnikola","html_url":"https://github.com/getnikola","followers_url":"https://api.github.com/users/getnikola/followers","following_url":"https://api.github.com/users/getnikola/following{/other_user}","gists_url":"https://api.github.com/users/getnikola/gists{/gist_id}","starred_url":"https://api.github.com/users/getnikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getnikola/subscriptions","organizations_url":"https://api.github.com/users/getnikola/orgs","repos_url":"https://api.github.com/users/getnikola/repos","events_url":"https://api.github.com/users/getnikola/events{/privacy}","received_events_url":"https://api.github.com/users/getnikola/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getnikola/nikola","description":"A static website and blog generator","fork":false,"url":"https://api.github.com/repos/getnikola/nikola","forks_url":"https://api.github.com/repos/getnikola/nikola/forks","keys_url":"https://api.github.com/repos/getnikola/nikola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getnikola/nikola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getnikola/nikola/teams","hooks_url":"https://api.github.com/repos/getnikola/nikola/hooks","issue_events_url":"https://api.github.com/repos/getnikola/nikola/issues/events{/number}","events_url":"https://api.github.com/repos/getnikola/nikola/events","assignees_url":"https://api.github.com/repos/getnikola/nikola/assignees{/user}","branches_url":"https://api.github.com/repos/getnikola/nikola/branches{/branch}","tags_url":"https://api.github.com/repos/getnikola/nikola/tags","blobs_url":"https://api.github.com/repos/getnikola/nikola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getnikola/nikola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getnikola/nikola/git/refs{/sha}","trees_url":"https://api.github.com/repos/getnikola/nikola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getnikola/nikola/statuses/{sha}","languages_url":"https://api.github.com/repos/getnikola/nikola/languages","stargazers_url":"https://api.github.com/repos/getnikola/nikola/stargazers","contributors_url":"https://api.github.com/repos/getnikola/nikola/contributors","subscribers_url":"https://api.github.com/repos/getnikola/nikola/subscribers","subscription_url":"https://api.github.com/repos/getnikola/nikola/subscription","commits_url":"https://api.github.com/repos/getnikola/nikola/commits{/sha}","git_commits_url":"https://api.github.com/repos/getnikola/nikola/git/commits{/sha}","comments_url":"https://api.github.com/repos/getnikola/nikola/comments{/number}","issue_comment_url":"https://api.github.com/repos/getnikola/nikola/issues/comments{/number}","contents_url":"https://api.github.com/repos/getnikola/nikola/contents/{+path}","compare_url":"https://api.github.com/repos/getnikola/nikola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getnikola/nikola/merges","archive_url":"https://api.github.com/repos/getnikola/nikola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getnikola/nikola/downloads","issues_url":"https://api.github.com/repos/getnikola/nikola/issues{/number}","pulls_url":"https://api.github.com/repos/getnikola/nikola/pulls{/number}","milestones_url":"https://api.github.com/repos/getnikola/nikola/milestones{/number}","notifications_url":"https://api.github.com/repos/getnikola/nikola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getnikola/nikola/labels{/name}","releases_url":"https://api.github.com/repos/getnikola/nikola/releases{/id}","deployments_url":"https://api.github.com/repos/getnikola/nikola/deployments","created_at":"2012-04-14T13:53:22Z","updated_at":"2017-05-17T22:34:23Z","pushed_at":"2017-05-21T10:20:06Z","git_url":"git://github.com/getnikola/nikola.git","ssh_url":"git@github.com:getnikola/nikola.git","clone_url":"https://github.com/getnikola/nikola.git","svn_url":"https://github.com/getnikola/nikola","homepage":"https://getnikola.com/","size":26106,"stargazers_count":1204,"watchers_count":1204,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":302,"mirror_url":null,"open_issues_count":71,"forks":302,"open_issues":71,"watchers":1204,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getnikola/nikola/pulls/2782"},"html":{"href":"https://github.com/getnikola/nikola/pull/2782"},"issue":{"href":"https://api.github.com/repos/getnikola/nikola/issues/2782"},"comments":{"href":"https://api.github.com/repos/getnikola/nikola/issues/2782/comments"},"review_comments":{"href":"https://api.github.com/repos/getnikola/nikola/pulls/2782/comments"},"review_comment":{"href":"https://api.github.com/repos/getnikola/nikola/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getnikola/nikola/pulls/2782/commits"},"statuses":{"href":"https://api.github.com/repos/getnikola/nikola/statuses/2b8b437ebc3c3dfaa30897d20f53db7a22881dd6"}}}}
{"actor":{"display_login":"felixfontein"}}