{"action":"created","comment":{"url":"https://api.github.com/repos/flask-restful/flask-restful/pulls/comments/31784358","id":31784358,"diff_hunk":"@@ -400,7 +400,11 @@ def _register_view(self, app, resource, *urls, **kwargs):\n         self.endpoints.add(endpoint)\n \n         if endpoint in app.view_functions.keys():\n-            previous_view_class = app.view_functions[endpoint].__dict__['view_class']\n+            try:","path":"flask_restful/__init__.py","position":5,"original_position":5,"commit_id":"be9d60e175a7cb42c492e4d32c65b28c90e4c0db","original_commit_id":"be9d60e175a7cb42c492e4d32c65b28c90e4c0db","user":{"login":"richtera","id":708186,"avatar_url":"https://avatars.githubusercontent.com/u/708186?v=3","gravatar_id":"","url":"https://api.github.com/users/richtera","html_url":"https://github.com/richtera","followers_url":"https://api.github.com/users/richtera/followers","following_url":"https://api.github.com/users/richtera/following{/other_user}","gists_url":"https://api.github.com/users/richtera/gists{/gist_id}","starred_url":"https://api.github.com/users/richtera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richtera/subscriptions","organizations_url":"https://api.github.com/users/richtera/orgs","repos_url":"https://api.github.com/users/richtera/repos","events_url":"https://api.github.com/users/richtera/events{/privacy}","received_events_url":"https://api.github.com/users/richtera/received_events","type":"User","site_admin":false},"body":"I often run into conflicts during dev where two things have the same route. Without the try except it cause an error but you can't tell why there was a problem","created_at":"2015-06-05T02:48:17Z","updated_at":"2015-06-05T02:48:17Z","html_url":"https://github.com/flask-restful/flask-restful/pull/408#discussion_r31784358","pull_request_url":"https://api.github.com/repos/flask-restful/flask-restful/pulls/408","_links":{"self":{"href":"https://api.github.com/repos/flask-restful/flask-restful/pulls/comments/31784358"},"html":{"href":"https://github.com/flask-restful/flask-restful/pull/408#discussion_r31784358"},"pull_request":{"href":"https://api.github.com/repos/flask-restful/flask-restful/pulls/408"}}},"pull_request":{"url":"https://api.github.com/repos/flask-restful/flask-restful/pulls/408","id":30321922,"html_url":"https://github.com/flask-restful/flask-restful/pull/408","diff_url":"https://github.com/flask-restful/flask-restful/pull/408.diff","patch_url":"https://github.com/flask-restful/flask-restful/pull/408.patch","issue_url":"https://api.github.com/repos/flask-restful/flask-restful/issues/408","number":408,"state":"open","locked":false,"title":"Allow methods property to work correctly","user":{"login":"richtera","id":708186,"avatar_url":"https://avatars.githubusercontent.com/u/708186?v=3","gravatar_id":"","url":"https://api.github.com/users/richtera","html_url":"https://github.com/richtera","followers_url":"https://api.github.com/users/richtera/followers","following_url":"https://api.github.com/users/richtera/following{/other_user}","gists_url":"https://api.github.com/users/richtera/gists{/gist_id}","starred_url":"https://api.github.com/users/richtera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richtera/subscriptions","organizations_url":"https://api.github.com/users/richtera/orgs","repos_url":"https://api.github.com/users/richtera/repos","events_url":"https://api.github.com/users/richtera/events{/privacy}","received_events_url":"https://api.github.com/users/richtera/received_events","type":"User","site_admin":false},"body":"Copy it so any decorators won't hide the property.","created_at":"2015-03-02T21:22:56Z","updated_at":"2015-06-05T02:48:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa16820f1fcc25d77c87177e9f04fde2e7443a95","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/flask-restful/flask-restful/pulls/408/commits","review_comments_url":"https://api.github.com/repos/flask-restful/flask-restful/pulls/408/comments","review_comment_url":"https://api.github.com/repos/flask-restful/flask-restful/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flask-restful/flask-restful/issues/408/comments","statuses_url":"https://api.github.com/repos/flask-restful/flask-restful/statuses/be9d60e175a7cb42c492e4d32c65b28c90e4c0db","head":{"label":"richtera:master","ref":"master","sha":"be9d60e175a7cb42c492e4d32c65b28c90e4c0db","user":{"login":"richtera","id":708186,"avatar_url":"https://avatars.githubusercontent.com/u/708186?v=3","gravatar_id":"","url":"https://api.github.com/users/richtera","html_url":"https://github.com/richtera","followers_url":"https://api.github.com/users/richtera/followers","following_url":"https://api.github.com/users/richtera/following{/other_user}","gists_url":"https://api.github.com/users/richtera/gists{/gist_id}","starred_url":"https://api.github.com/users/richtera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richtera/subscriptions","organizations_url":"https://api.github.com/users/richtera/orgs","repos_url":"https://api.github.com/users/richtera/repos","events_url":"https://api.github.com/users/richtera/events{/privacy}","received_events_url":"https://api.github.com/users/richtera/received_events","type":"User","site_admin":false},"repo":{"id":18775676,"name":"flask-restful","full_name":"richtera/flask-restful","owner":{"login":"richtera","id":708186,"avatar_url":"https://avatars.githubusercontent.com/u/708186?v=3","gravatar_id":"","url":"https://api.github.com/users/richtera","html_url":"https://github.com/richtera","followers_url":"https://api.github.com/users/richtera/followers","following_url":"https://api.github.com/users/richtera/following{/other_user}","gists_url":"https://api.github.com/users/richtera/gists{/gist_id}","starred_url":"https://api.github.com/users/richtera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richtera/subscriptions","organizations_url":"https://api.github.com/users/richtera/orgs","repos_url":"https://api.github.com/users/richtera/repos","events_url":"https://api.github.com/users/richtera/events{/privacy}","received_events_url":"https://api.github.com/users/richtera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/richtera/flask-restful","description":"Simple framework for creating REST APIs","fork":true,"url":"https://api.github.com/repos/richtera/flask-restful","forks_url":"https://api.github.com/repos/richtera/flask-restful/forks","keys_url":"https://api.github.com/repos/richtera/flask-restful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/richtera/flask-restful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/richtera/flask-restful/teams","hooks_url":"https://api.github.com/repos/richtera/flask-restful/hooks","issue_events_url":"https://api.github.com/repos/richtera/flask-restful/issues/events{/number}","events_url":"https://api.github.com/repos/richtera/flask-restful/events","assignees_url":"https://api.github.com/repos/richtera/flask-restful/assignees{/user}","branches_url":"https://api.github.com/repos/richtera/flask-restful/branches{/branch}","tags_url":"https://api.github.com/repos/richtera/flask-restful/tags","blobs_url":"https://api.github.com/repos/richtera/flask-restful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/richtera/flask-restful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/richtera/flask-restful/git/refs{/sha}","trees_url":"https://api.github.com/repos/richtera/flask-restful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/richtera/flask-restful/statuses/{sha}","languages_url":"https://api.github.com/repos/richtera/flask-restful/languages","stargazers_url":"https://api.github.com/repos/richtera/flask-restful/stargazers","contributors_url":"https://api.github.com/repos/richtera/flask-restful/contributors","subscribers_url":"https://api.github.com/repos/richtera/flask-restful/subscribers","subscription_url":"https://api.github.com/repos/richtera/flask-restful/subscription","commits_url":"https://api.github.com/repos/richtera/flask-restful/commits{/sha}","git_commits_url":"https://api.github.com/repos/richtera/flask-restful/git/commits{/sha}","comments_url":"https://api.github.com/repos/richtera/flask-restful/comments{/number}","issue_comment_url":"https://api.github.com/repos/richtera/flask-restful/issues/comments{/number}","contents_url":"https://api.github.com/repos/richtera/flask-restful/contents/{+path}","compare_url":"https://api.github.com/repos/richtera/flask-restful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/richtera/flask-restful/merges","archive_url":"https://api.github.com/repos/richtera/flask-restful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/richtera/flask-restful/downloads","issues_url":"https://api.github.com/repos/richtera/flask-restful/issues{/number}","pulls_url":"https://api.github.com/repos/richtera/flask-restful/pulls{/number}","milestones_url":"https://api.github.com/repos/richtera/flask-restful/milestones{/number}","notifications_url":"https://api.github.com/repos/richtera/flask-restful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/richtera/flask-restful/labels{/name}","releases_url":"https://api.github.com/repos/richtera/flask-restful/releases{/id}","created_at":"2014-04-14T20:34:15Z","updated_at":"2015-04-15T18:21:54Z","pushed_at":"2015-04-15T18:21:53Z","git_url":"git://github.com/richtera/flask-restful.git","ssh_url":"git@github.com:richtera/flask-restful.git","clone_url":"https://github.com/richtera/flask-restful.git","svn_url":"https://github.com/richtera/flask-restful","homepage":"http://flask-restful.readthedocs.org/en/latest/","size":863,"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":"flask-restful:master","ref":"master","sha":"edc634e643a257ded74ca86da699ecd7e2020817","user":{"login":"flask-restful","id":9747573,"avatar_url":"https://avatars.githubusercontent.com/u/9747573?v=3","gravatar_id":"","url":"https://api.github.com/users/flask-restful","html_url":"https://github.com/flask-restful","followers_url":"https://api.github.com/users/flask-restful/followers","following_url":"https://api.github.com/users/flask-restful/following{/other_user}","gists_url":"https://api.github.com/users/flask-restful/gists{/gist_id}","starred_url":"https://api.github.com/users/flask-restful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flask-restful/subscriptions","organizations_url":"https://api.github.com/users/flask-restful/orgs","repos_url":"https://api.github.com/users/flask-restful/repos","events_url":"https://api.github.com/users/flask-restful/events{/privacy}","received_events_url":"https://api.github.com/users/flask-restful/received_events","type":"Organization","site_admin":false},"repo":{"id":6182775,"name":"flask-restful","full_name":"flask-restful/flask-restful","owner":{"login":"flask-restful","id":9747573,"avatar_url":"https://avatars.githubusercontent.com/u/9747573?v=3","gravatar_id":"","url":"https://api.github.com/users/flask-restful","html_url":"https://github.com/flask-restful","followers_url":"https://api.github.com/users/flask-restful/followers","following_url":"https://api.github.com/users/flask-restful/following{/other_user}","gists_url":"https://api.github.com/users/flask-restful/gists{/gist_id}","starred_url":"https://api.github.com/users/flask-restful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flask-restful/subscriptions","organizations_url":"https://api.github.com/users/flask-restful/orgs","repos_url":"https://api.github.com/users/flask-restful/repos","events_url":"https://api.github.com/users/flask-restful/events{/privacy}","received_events_url":"https://api.github.com/users/flask-restful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flask-restful/flask-restful","description":"Simple framework for creating REST APIs","fork":false,"url":"https://api.github.com/repos/flask-restful/flask-restful","forks_url":"https://api.github.com/repos/flask-restful/flask-restful/forks","keys_url":"https://api.github.com/repos/flask-restful/flask-restful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flask-restful/flask-restful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flask-restful/flask-restful/teams","hooks_url":"https://api.github.com/repos/flask-restful/flask-restful/hooks","issue_events_url":"https://api.github.com/repos/flask-restful/flask-restful/issues/events{/number}","events_url":"https://api.github.com/repos/flask-restful/flask-restful/events","assignees_url":"https://api.github.com/repos/flask-restful/flask-restful/assignees{/user}","branches_url":"https://api.github.com/repos/flask-restful/flask-restful/branches{/branch}","tags_url":"https://api.github.com/repos/flask-restful/flask-restful/tags","blobs_url":"https://api.github.com/repos/flask-restful/flask-restful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flask-restful/flask-restful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flask-restful/flask-restful/git/refs{/sha}","trees_url":"https://api.github.com/repos/flask-restful/flask-restful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flask-restful/flask-restful/statuses/{sha}","languages_url":"https://api.github.com/repos/flask-restful/flask-restful/languages","stargazers_url":"https://api.github.com/repos/flask-restful/flask-restful/stargazers","contributors_url":"https://api.github.com/repos/flask-restful/flask-restful/contributors","subscribers_url":"https://api.github.com/repos/flask-restful/flask-restful/subscribers","subscription_url":"https://api.github.com/repos/flask-restful/flask-restful/subscription","commits_url":"https://api.github.com/repos/flask-restful/flask-restful/commits{/sha}","git_commits_url":"https://api.github.com/repos/flask-restful/flask-restful/git/commits{/sha}","comments_url":"https://api.github.com/repos/flask-restful/flask-restful/comments{/number}","issue_comment_url":"https://api.github.com/repos/flask-restful/flask-restful/issues/comments{/number}","contents_url":"https://api.github.com/repos/flask-restful/flask-restful/contents/{+path}","compare_url":"https://api.github.com/repos/flask-restful/flask-restful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flask-restful/flask-restful/merges","archive_url":"https://api.github.com/repos/flask-restful/flask-restful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flask-restful/flask-restful/downloads","issues_url":"https://api.github.com/repos/flask-restful/flask-restful/issues{/number}","pulls_url":"https://api.github.com/repos/flask-restful/flask-restful/pulls{/number}","milestones_url":"https://api.github.com/repos/flask-restful/flask-restful/milestones{/number}","notifications_url":"https://api.github.com/repos/flask-restful/flask-restful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flask-restful/flask-restful/labels{/name}","releases_url":"https://api.github.com/repos/flask-restful/flask-restful/releases{/id}","created_at":"2012-10-12T00:08:51Z","updated_at":"2015-06-05T02:40:05Z","pushed_at":"2015-06-05T02:34:14Z","git_url":"git://github.com/flask-restful/flask-restful.git","ssh_url":"git@github.com:flask-restful/flask-restful.git","clone_url":"https://github.com/flask-restful/flask-restful.git","svn_url":"https://github.com/flask-restful/flask-restful","homepage":"http://flask-restful.readthedocs.org","size":3919,"stargazers_count":1368,"watchers_count":1368,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":287,"mirror_url":null,"open_issues_count":30,"forks":287,"open_issues":30,"watchers":1368,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flask-restful/flask-restful/pulls/408"},"html":{"href":"https://github.com/flask-restful/flask-restful/pull/408"},"issue":{"href":"https://api.github.com/repos/flask-restful/flask-restful/issues/408"},"comments":{"href":"https://api.github.com/repos/flask-restful/flask-restful/issues/408/comments"},"review_comments":{"href":"https://api.github.com/repos/flask-restful/flask-restful/pulls/408/comments"},"review_comment":{"href":"https://api.github.com/repos/flask-restful/flask-restful/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flask-restful/flask-restful/pulls/408/commits"},"statuses":{"href":"https://api.github.com/repos/flask-restful/flask-restful/statuses/be9d60e175a7cb42c492e4d32c65b28c90e4c0db"}}}}