{"action":"opened","number":1116,"pull_request":{"url":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/1116","id":216560196,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2NTYwMTk2","html_url":"https://github.com/canonical-websites/snapcraft.io/pull/1116","diff_url":"https://github.com/canonical-websites/snapcraft.io/pull/1116.diff","patch_url":"https://github.com/canonical-websites/snapcraft.io/pull/1116.patch","issue_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues/1116","number":1116,"state":"open","locked":false,"title":"Fix undefined var","user":{"login":"tbille","id":2707508,"node_id":"MDQ6VXNlcjI3MDc1MDg=","avatar_url":"https://avatars0.githubusercontent.com/u/2707508?v=4","gravatar_id":"","url":"https://api.github.com/users/tbille","html_url":"https://github.com/tbille","followers_url":"https://api.github.com/users/tbille/followers","following_url":"https://api.github.com/users/tbille/following{/other_user}","gists_url":"https://api.github.com/users/tbille/gists{/gist_id}","starred_url":"https://api.github.com/users/tbille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbille/subscriptions","organizations_url":"https://api.github.com/users/tbille/orgs","repos_url":"https://api.github.com/users/tbille/repos","events_url":"https://api.github.com/users/tbille/events{/privacy}","received_events_url":"https://api.github.com/users/tbille/received_events","type":"User","site_admin":false},"body":"Fixes #1115 \r\nFixes https://sentry.io/canonical-bm/snapcraftio/issues/668749462\r\n\r\nWhen API fails the objcet should be an empty array to be iterable for the loop.\r\n\r\n# qa\r\n\r\nYou can make sure it works by assigning the variable with an empty array after the try catch and go on http://127.0.0.1:8004/lxd No article should be displayed","created_at":"2018-09-19T08:49:13Z","updated_at":"2018-09-19T08:49:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/1116/commits","review_comments_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/1116/comments","review_comment_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues/1116/comments","statuses_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/statuses/4a17b4d2875ec9974933ecc1b07a1db3c45202e3","head":{"label":"tbille:sentry-668749462","ref":"sentry-668749462","sha":"4a17b4d2875ec9974933ecc1b07a1db3c45202e3","user":{"login":"tbille","id":2707508,"node_id":"MDQ6VXNlcjI3MDc1MDg=","avatar_url":"https://avatars0.githubusercontent.com/u/2707508?v=4","gravatar_id":"","url":"https://api.github.com/users/tbille","html_url":"https://github.com/tbille","followers_url":"https://api.github.com/users/tbille/followers","following_url":"https://api.github.com/users/tbille/following{/other_user}","gists_url":"https://api.github.com/users/tbille/gists{/gist_id}","starred_url":"https://api.github.com/users/tbille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbille/subscriptions","organizations_url":"https://api.github.com/users/tbille/orgs","repos_url":"https://api.github.com/users/tbille/repos","events_url":"https://api.github.com/users/tbille/events{/privacy}","received_events_url":"https://api.github.com/users/tbille/received_events","type":"User","site_admin":false},"repo":{"id":109980720,"node_id":"MDEwOlJlcG9zaXRvcnkxMDk5ODA3MjA=","name":"snapcraft.io","full_name":"tbille/snapcraft.io","private":false,"owner":{"login":"tbille","id":2707508,"node_id":"MDQ6VXNlcjI3MDc1MDg=","avatar_url":"https://avatars0.githubusercontent.com/u/2707508?v=4","gravatar_id":"","url":"https://api.github.com/users/tbille","html_url":"https://github.com/tbille","followers_url":"https://api.github.com/users/tbille/followers","following_url":"https://api.github.com/users/tbille/following{/other_user}","gists_url":"https://api.github.com/users/tbille/gists{/gist_id}","starred_url":"https://api.github.com/users/tbille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbille/subscriptions","organizations_url":"https://api.github.com/users/tbille/orgs","repos_url":"https://api.github.com/users/tbille/repos","events_url":"https://api.github.com/users/tbille/events{/privacy}","received_events_url":"https://api.github.com/users/tbille/received_events","type":"User","site_admin":false},"html_url":"https://github.com/tbille/snapcraft.io","description":null,"fork":true,"url":"https://api.github.com/repos/tbille/snapcraft.io","forks_url":"https://api.github.com/repos/tbille/snapcraft.io/forks","keys_url":"https://api.github.com/repos/tbille/snapcraft.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tbille/snapcraft.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tbille/snapcraft.io/teams","hooks_url":"https://api.github.com/repos/tbille/snapcraft.io/hooks","issue_events_url":"https://api.github.com/repos/tbille/snapcraft.io/issues/events{/number}","events_url":"https://api.github.com/repos/tbille/snapcraft.io/events","assignees_url":"https://api.github.com/repos/tbille/snapcraft.io/assignees{/user}","branches_url":"https://api.github.com/repos/tbille/snapcraft.io/branches{/branch}","tags_url":"https://api.github.com/repos/tbille/snapcraft.io/tags","blobs_url":"https://api.github.com/repos/tbille/snapcraft.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tbille/snapcraft.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tbille/snapcraft.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/tbille/snapcraft.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tbille/snapcraft.io/statuses/{sha}","languages_url":"https://api.github.com/repos/tbille/snapcraft.io/languages","stargazers_url":"https://api.github.com/repos/tbille/snapcraft.io/stargazers","contributors_url":"https://api.github.com/repos/tbille/snapcraft.io/contributors","subscribers_url":"https://api.github.com/repos/tbille/snapcraft.io/subscribers","subscription_url":"https://api.github.com/repos/tbille/snapcraft.io/subscription","commits_url":"https://api.github.com/repos/tbille/snapcraft.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/tbille/snapcraft.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/tbille/snapcraft.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/tbille/snapcraft.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/tbille/snapcraft.io/contents/{+path}","compare_url":"https://api.github.com/repos/tbille/snapcraft.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tbille/snapcraft.io/merges","archive_url":"https://api.github.com/repos/tbille/snapcraft.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tbille/snapcraft.io/downloads","issues_url":"https://api.github.com/repos/tbille/snapcraft.io/issues{/number}","pulls_url":"https://api.github.com/repos/tbille/snapcraft.io/pulls{/number}","milestones_url":"https://api.github.com/repos/tbille/snapcraft.io/milestones{/number}","notifications_url":"https://api.github.com/repos/tbille/snapcraft.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tbille/snapcraft.io/labels{/name}","releases_url":"https://api.github.com/repos/tbille/snapcraft.io/releases{/id}","deployments_url":"https://api.github.com/repos/tbille/snapcraft.io/deployments","created_at":"2017-11-08T13:39:43Z","updated_at":"2018-02-26T11:46:16Z","pushed_at":"2018-09-19T08:45:59Z","git_url":"git://github.com/tbille/snapcraft.io.git","ssh_url":"git@github.com:tbille/snapcraft.io.git","clone_url":"https://github.com/tbille/snapcraft.io.git","svn_url":"https://github.com/tbille/snapcraft.io","homepage":null,"size":2229,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"canonical-websites:master","ref":"master","sha":"bd64cdc827963d2f671880928079424b549d5910","user":{"login":"canonical-websites","id":26072773,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MDcyNzcz","avatar_url":"https://avatars2.githubusercontent.com/u/26072773?v=4","gravatar_id":"","url":"https://api.github.com/users/canonical-websites","html_url":"https://github.com/canonical-websites","followers_url":"https://api.github.com/users/canonical-websites/followers","following_url":"https://api.github.com/users/canonical-websites/following{/other_user}","gists_url":"https://api.github.com/users/canonical-websites/gists{/gist_id}","starred_url":"https://api.github.com/users/canonical-websites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canonical-websites/subscriptions","organizations_url":"https://api.github.com/users/canonical-websites/orgs","repos_url":"https://api.github.com/users/canonical-websites/repos","events_url":"https://api.github.com/users/canonical-websites/events{/privacy}","received_events_url":"https://api.github.com/users/canonical-websites/received_events","type":"Organization","site_admin":false},"repo":{"id":100534315,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA1MzQzMTU=","name":"snapcraft.io","full_name":"canonical-websites/snapcraft.io","private":false,"owner":{"login":"canonical-websites","id":26072773,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MDcyNzcz","avatar_url":"https://avatars2.githubusercontent.com/u/26072773?v=4","gravatar_id":"","url":"https://api.github.com/users/canonical-websites","html_url":"https://github.com/canonical-websites","followers_url":"https://api.github.com/users/canonical-websites/followers","following_url":"https://api.github.com/users/canonical-websites/following{/other_user}","gists_url":"https://api.github.com/users/canonical-websites/gists{/gist_id}","starred_url":"https://api.github.com/users/canonical-websites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canonical-websites/subscriptions","organizations_url":"https://api.github.com/users/canonical-websites/orgs","repos_url":"https://api.github.com/users/canonical-websites/repos","events_url":"https://api.github.com/users/canonical-websites/events{/privacy}","received_events_url":"https://api.github.com/users/canonical-websites/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/canonical-websites/snapcraft.io","description":null,"fork":false,"url":"https://api.github.com/repos/canonical-websites/snapcraft.io","forks_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/forks","keys_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/teams","hooks_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/hooks","issue_events_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues/events{/number}","events_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/events","assignees_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/assignees{/user}","branches_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/branches{/branch}","tags_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/tags","blobs_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/statuses/{sha}","languages_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/languages","stargazers_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/stargazers","contributors_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/contributors","subscribers_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/subscribers","subscription_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/subscription","commits_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/contents/{+path}","compare_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/merges","archive_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/downloads","issues_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues{/number}","pulls_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls{/number}","milestones_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/milestones{/number}","notifications_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/labels{/name}","releases_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/releases{/id}","deployments_url":"https://api.github.com/repos/canonical-websites/snapcraft.io/deployments","created_at":"2017-08-16T21:29:29Z","updated_at":"2018-09-19T08:37:04Z","pushed_at":"2018-09-19T08:41:04Z","git_url":"git://github.com/canonical-websites/snapcraft.io.git","ssh_url":"git@github.com:canonical-websites/snapcraft.io.git","clone_url":"https://github.com/canonical-websites/snapcraft.io.git","svn_url":"https://github.com/canonical-websites/snapcraft.io","homepage":null,"size":1929,"stargazers_count":17,"watchers_count":17,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":111,"license":null,"forks":28,"open_issues":111,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/1116"},"html":{"href":"https://github.com/canonical-websites/snapcraft.io/pull/1116"},"issue":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues/1116"},"comments":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/issues/1116/comments"},"review_comments":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/1116/comments"},"review_comment":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/pulls/1116/commits"},"statuses":{"href":"https://api.github.com/repos/canonical-websites/snapcraft.io/statuses/4a17b4d2875ec9974933ecc1b07a1db3c45202e3"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"tbille"}}