{"action":"opened","number":127,"pull_request":{"url":"https://api.github.com/repos/usit-gd/mreg/pulls/127","id":226872114,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2ODcyMTE0","html_url":"https://github.com/usit-gd/mreg/pull/127","diff_url":"https://github.com/usit-gd/mreg/pull/127.diff","patch_url":"https://github.com/usit-gd/mreg/pull/127.patch","issue_url":"https://api.github.com/repos/usit-gd/mreg/issues/127","number":127,"state":"open","locked":false,"title":"Use get_object_or_404 where appropriate instead of try/except + raise.","user":{"login":"oyvindkolbu","id":4395411,"node_id":"MDQ6VXNlcjQzOTU0MTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4395411?v=4","gravatar_id":"","url":"https://api.github.com/users/oyvindkolbu","html_url":"https://github.com/oyvindkolbu","followers_url":"https://api.github.com/users/oyvindkolbu/followers","following_url":"https://api.github.com/users/oyvindkolbu/following{/other_user}","gists_url":"https://api.github.com/users/oyvindkolbu/gists{/gist_id}","starred_url":"https://api.github.com/users/oyvindkolbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oyvindkolbu/subscriptions","organizations_url":"https://api.github.com/users/oyvindkolbu/orgs","repos_url":"https://api.github.com/users/oyvindkolbu/repos","events_url":"https://api.github.com/users/oyvindkolbu/events{/privacy}","received_events_url":"https://api.github.com/users/oyvindkolbu/received_events","type":"User","site_admin":false},"body":"Resolves #126.","created_at":"2018-10-30T10:48:22Z","updated_at":"2018-10-30T10:48:22Z","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/usit-gd/mreg/pulls/127/commits","review_comments_url":"https://api.github.com/repos/usit-gd/mreg/pulls/127/comments","review_comment_url":"https://api.github.com/repos/usit-gd/mreg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/usit-gd/mreg/issues/127/comments","statuses_url":"https://api.github.com/repos/usit-gd/mreg/statuses/4de82dc9f6a92e64bc5c0c855ae5e14503ca737c","head":{"label":"usit-gd:use-get_object_or_404","ref":"use-get_object_or_404","sha":"4de82dc9f6a92e64bc5c0c855ae5e14503ca737c","user":{"login":"usit-gd","id":9106171,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxMDYxNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/9106171?v=4","gravatar_id":"","url":"https://api.github.com/users/usit-gd","html_url":"https://github.com/usit-gd","followers_url":"https://api.github.com/users/usit-gd/followers","following_url":"https://api.github.com/users/usit-gd/following{/other_user}","gists_url":"https://api.github.com/users/usit-gd/gists{/gist_id}","starred_url":"https://api.github.com/users/usit-gd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usit-gd/subscriptions","organizations_url":"https://api.github.com/users/usit-gd/orgs","repos_url":"https://api.github.com/users/usit-gd/repos","events_url":"https://api.github.com/users/usit-gd/events{/privacy}","received_events_url":"https://api.github.com/users/usit-gd/received_events","type":"Organization","site_admin":false},"repo":{"id":136464628,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY0NjQ2Mjg=","name":"mreg","full_name":"usit-gd/mreg","private":false,"owner":{"login":"usit-gd","id":9106171,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxMDYxNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/9106171?v=4","gravatar_id":"","url":"https://api.github.com/users/usit-gd","html_url":"https://github.com/usit-gd","followers_url":"https://api.github.com/users/usit-gd/followers","following_url":"https://api.github.com/users/usit-gd/following{/other_user}","gists_url":"https://api.github.com/users/usit-gd/gists{/gist_id}","starred_url":"https://api.github.com/users/usit-gd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usit-gd/subscriptions","organizations_url":"https://api.github.com/users/usit-gd/orgs","repos_url":"https://api.github.com/users/usit-gd/repos","events_url":"https://api.github.com/users/usit-gd/events{/privacy}","received_events_url":"https://api.github.com/users/usit-gd/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/usit-gd/mreg","description":null,"fork":false,"url":"https://api.github.com/repos/usit-gd/mreg","forks_url":"https://api.github.com/repos/usit-gd/mreg/forks","keys_url":"https://api.github.com/repos/usit-gd/mreg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usit-gd/mreg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usit-gd/mreg/teams","hooks_url":"https://api.github.com/repos/usit-gd/mreg/hooks","issue_events_url":"https://api.github.com/repos/usit-gd/mreg/issues/events{/number}","events_url":"https://api.github.com/repos/usit-gd/mreg/events","assignees_url":"https://api.github.com/repos/usit-gd/mreg/assignees{/user}","branches_url":"https://api.github.com/repos/usit-gd/mreg/branches{/branch}","tags_url":"https://api.github.com/repos/usit-gd/mreg/tags","blobs_url":"https://api.github.com/repos/usit-gd/mreg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usit-gd/mreg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usit-gd/mreg/git/refs{/sha}","trees_url":"https://api.github.com/repos/usit-gd/mreg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usit-gd/mreg/statuses/{sha}","languages_url":"https://api.github.com/repos/usit-gd/mreg/languages","stargazers_url":"https://api.github.com/repos/usit-gd/mreg/stargazers","contributors_url":"https://api.github.com/repos/usit-gd/mreg/contributors","subscribers_url":"https://api.github.com/repos/usit-gd/mreg/subscribers","subscription_url":"https://api.github.com/repos/usit-gd/mreg/subscription","commits_url":"https://api.github.com/repos/usit-gd/mreg/commits{/sha}","git_commits_url":"https://api.github.com/repos/usit-gd/mreg/git/commits{/sha}","comments_url":"https://api.github.com/repos/usit-gd/mreg/comments{/number}","issue_comment_url":"https://api.github.com/repos/usit-gd/mreg/issues/comments{/number}","contents_url":"https://api.github.com/repos/usit-gd/mreg/contents/{+path}","compare_url":"https://api.github.com/repos/usit-gd/mreg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usit-gd/mreg/merges","archive_url":"https://api.github.com/repos/usit-gd/mreg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usit-gd/mreg/downloads","issues_url":"https://api.github.com/repos/usit-gd/mreg/issues{/number}","pulls_url":"https://api.github.com/repos/usit-gd/mreg/pulls{/number}","milestones_url":"https://api.github.com/repos/usit-gd/mreg/milestones{/number}","notifications_url":"https://api.github.com/repos/usit-gd/mreg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usit-gd/mreg/labels{/name}","releases_url":"https://api.github.com/repos/usit-gd/mreg/releases{/id}","deployments_url":"https://api.github.com/repos/usit-gd/mreg/deployments","created_at":"2018-06-07T11:01:30Z","updated_at":"2018-10-30T09:54:29Z","pushed_at":"2018-10-30T10:48:02Z","git_url":"git://github.com/usit-gd/mreg.git","ssh_url":"git@github.com:usit-gd/mreg.git","clone_url":"https://github.com/usit-gd/mreg.git","svn_url":"https://github.com/usit-gd/mreg","homepage":null,"size":315,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":27,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":27,"watchers":4,"default_branch":"master"}},"base":{"label":"usit-gd:master","ref":"master","sha":"60d94a6ce9f98c6a00bc4907492d8c9b3e7ade7b","user":{"login":"usit-gd","id":9106171,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxMDYxNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/9106171?v=4","gravatar_id":"","url":"https://api.github.com/users/usit-gd","html_url":"https://github.com/usit-gd","followers_url":"https://api.github.com/users/usit-gd/followers","following_url":"https://api.github.com/users/usit-gd/following{/other_user}","gists_url":"https://api.github.com/users/usit-gd/gists{/gist_id}","starred_url":"https://api.github.com/users/usit-gd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usit-gd/subscriptions","organizations_url":"https://api.github.com/users/usit-gd/orgs","repos_url":"https://api.github.com/users/usit-gd/repos","events_url":"https://api.github.com/users/usit-gd/events{/privacy}","received_events_url":"https://api.github.com/users/usit-gd/received_events","type":"Organization","site_admin":false},"repo":{"id":136464628,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY0NjQ2Mjg=","name":"mreg","full_name":"usit-gd/mreg","private":false,"owner":{"login":"usit-gd","id":9106171,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxMDYxNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/9106171?v=4","gravatar_id":"","url":"https://api.github.com/users/usit-gd","html_url":"https://github.com/usit-gd","followers_url":"https://api.github.com/users/usit-gd/followers","following_url":"https://api.github.com/users/usit-gd/following{/other_user}","gists_url":"https://api.github.com/users/usit-gd/gists{/gist_id}","starred_url":"https://api.github.com/users/usit-gd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usit-gd/subscriptions","organizations_url":"https://api.github.com/users/usit-gd/orgs","repos_url":"https://api.github.com/users/usit-gd/repos","events_url":"https://api.github.com/users/usit-gd/events{/privacy}","received_events_url":"https://api.github.com/users/usit-gd/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/usit-gd/mreg","description":null,"fork":false,"url":"https://api.github.com/repos/usit-gd/mreg","forks_url":"https://api.github.com/repos/usit-gd/mreg/forks","keys_url":"https://api.github.com/repos/usit-gd/mreg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usit-gd/mreg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usit-gd/mreg/teams","hooks_url":"https://api.github.com/repos/usit-gd/mreg/hooks","issue_events_url":"https://api.github.com/repos/usit-gd/mreg/issues/events{/number}","events_url":"https://api.github.com/repos/usit-gd/mreg/events","assignees_url":"https://api.github.com/repos/usit-gd/mreg/assignees{/user}","branches_url":"https://api.github.com/repos/usit-gd/mreg/branches{/branch}","tags_url":"https://api.github.com/repos/usit-gd/mreg/tags","blobs_url":"https://api.github.com/repos/usit-gd/mreg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usit-gd/mreg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usit-gd/mreg/git/refs{/sha}","trees_url":"https://api.github.com/repos/usit-gd/mreg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usit-gd/mreg/statuses/{sha}","languages_url":"https://api.github.com/repos/usit-gd/mreg/languages","stargazers_url":"https://api.github.com/repos/usit-gd/mreg/stargazers","contributors_url":"https://api.github.com/repos/usit-gd/mreg/contributors","subscribers_url":"https://api.github.com/repos/usit-gd/mreg/subscribers","subscription_url":"https://api.github.com/repos/usit-gd/mreg/subscription","commits_url":"https://api.github.com/repos/usit-gd/mreg/commits{/sha}","git_commits_url":"https://api.github.com/repos/usit-gd/mreg/git/commits{/sha}","comments_url":"https://api.github.com/repos/usit-gd/mreg/comments{/number}","issue_comment_url":"https://api.github.com/repos/usit-gd/mreg/issues/comments{/number}","contents_url":"https://api.github.com/repos/usit-gd/mreg/contents/{+path}","compare_url":"https://api.github.com/repos/usit-gd/mreg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usit-gd/mreg/merges","archive_url":"https://api.github.com/repos/usit-gd/mreg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usit-gd/mreg/downloads","issues_url":"https://api.github.com/repos/usit-gd/mreg/issues{/number}","pulls_url":"https://api.github.com/repos/usit-gd/mreg/pulls{/number}","milestones_url":"https://api.github.com/repos/usit-gd/mreg/milestones{/number}","notifications_url":"https://api.github.com/repos/usit-gd/mreg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usit-gd/mreg/labels{/name}","releases_url":"https://api.github.com/repos/usit-gd/mreg/releases{/id}","deployments_url":"https://api.github.com/repos/usit-gd/mreg/deployments","created_at":"2018-06-07T11:01:30Z","updated_at":"2018-10-30T09:54:29Z","pushed_at":"2018-10-30T10:48:02Z","git_url":"git://github.com/usit-gd/mreg.git","ssh_url":"git@github.com:usit-gd/mreg.git","clone_url":"https://github.com/usit-gd/mreg.git","svn_url":"https://github.com/usit-gd/mreg","homepage":null,"size":315,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":27,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":27,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/usit-gd/mreg/pulls/127"},"html":{"href":"https://github.com/usit-gd/mreg/pull/127"},"issue":{"href":"https://api.github.com/repos/usit-gd/mreg/issues/127"},"comments":{"href":"https://api.github.com/repos/usit-gd/mreg/issues/127/comments"},"review_comments":{"href":"https://api.github.com/repos/usit-gd/mreg/pulls/127/comments"},"review_comment":{"href":"https://api.github.com/repos/usit-gd/mreg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/usit-gd/mreg/pulls/127/commits"},"statuses":{"href":"https://api.github.com/repos/usit-gd/mreg/statuses/4de82dc9f6a92e64bc5c0c855ae5e14503ca737c"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":80,"deletions":121,"changed_files":1}}
{"actor":{"display_login":"oyvindkolbu"}}