{"action":"closed","number":24,"pull_request":{"url":"https://api.github.com/repos/EasyPost/easypost-python/pulls/24","id":32711111,"html_url":"https://github.com/EasyPost/easypost-python/pull/24","diff_url":"https://github.com/EasyPost/easypost-python/pull/24.diff","patch_url":"https://github.com/EasyPost/easypost-python/pull/24.patch","issue_url":"https://api.github.com/repos/EasyPost/easypost-python/issues/24","number":24,"state":"closed","locked":false,"title":"handle attempts to retrieve a resource with an easypost_id string containing 'id' substring","user":{"login":"eviljosh","id":1145807,"avatar_url":"https://avatars.githubusercontent.com/u/1145807?v=3","gravatar_id":"","url":"https://api.github.com/users/eviljosh","html_url":"https://github.com/eviljosh","followers_url":"https://api.github.com/users/eviljosh/followers","following_url":"https://api.github.com/users/eviljosh/following{/other_user}","gists_url":"https://api.github.com/users/eviljosh/gists{/gist_id}","starred_url":"https://api.github.com/users/eviljosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eviljosh/subscriptions","organizations_url":"https://api.github.com/users/eviljosh/orgs","repos_url":"https://api.github.com/users/eviljosh/repos","events_url":"https://api.github.com/users/eviljosh/events{/privacy}","received_events_url":"https://api.github.com/users/eviljosh/received_events","type":"User","site_admin":false},"body":"If the easypost_id is passed as a string and that string includes \"id\" as a substring, then the if will return True but the string will raise a TypeError when accessed with the nonnumeric index of \"id\".\r\n\r\nThis PR attempts to account for that without reverting all the way back to catching a naked exception.","created_at":"2015-04-06T21:01:45Z","updated_at":"2015-05-11T18:06:59Z","closed_at":"2015-05-11T18:06:59Z","merged_at":"2015-05-11T18:06:59Z","merge_commit_sha":"082d30fc8f1da2843eb273da63483b65ef3d3328","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/EasyPost/easypost-python/pulls/24/commits","review_comments_url":"https://api.github.com/repos/EasyPost/easypost-python/pulls/24/comments","review_comment_url":"https://api.github.com/repos/EasyPost/easypost-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EasyPost/easypost-python/issues/24/comments","statuses_url":"https://api.github.com/repos/EasyPost/easypost-python/statuses/9dbde8545759f9111469c11f0302db1a3bf49bf1","head":{"label":"eviljosh:handle-easypost-id-strings","ref":"handle-easypost-id-strings","sha":"9dbde8545759f9111469c11f0302db1a3bf49bf1","user":{"login":"eviljosh","id":1145807,"avatar_url":"https://avatars.githubusercontent.com/u/1145807?v=3","gravatar_id":"","url":"https://api.github.com/users/eviljosh","html_url":"https://github.com/eviljosh","followers_url":"https://api.github.com/users/eviljosh/followers","following_url":"https://api.github.com/users/eviljosh/following{/other_user}","gists_url":"https://api.github.com/users/eviljosh/gists{/gist_id}","starred_url":"https://api.github.com/users/eviljosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eviljosh/subscriptions","organizations_url":"https://api.github.com/users/eviljosh/orgs","repos_url":"https://api.github.com/users/eviljosh/repos","events_url":"https://api.github.com/users/eviljosh/events{/privacy}","received_events_url":"https://api.github.com/users/eviljosh/received_events","type":"User","site_admin":false},"repo":{"id":33502338,"name":"easypost-python","full_name":"eviljosh/easypost-python","owner":{"login":"eviljosh","id":1145807,"avatar_url":"https://avatars.githubusercontent.com/u/1145807?v=3","gravatar_id":"","url":"https://api.github.com/users/eviljosh","html_url":"https://github.com/eviljosh","followers_url":"https://api.github.com/users/eviljosh/followers","following_url":"https://api.github.com/users/eviljosh/following{/other_user}","gists_url":"https://api.github.com/users/eviljosh/gists{/gist_id}","starred_url":"https://api.github.com/users/eviljosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eviljosh/subscriptions","organizations_url":"https://api.github.com/users/eviljosh/orgs","repos_url":"https://api.github.com/users/eviljosh/repos","events_url":"https://api.github.com/users/eviljosh/events{/privacy}","received_events_url":"https://api.github.com/users/eviljosh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eviljosh/easypost-python","description":"EasyPost Shipping API Client Library for Python","fork":true,"url":"https://api.github.com/repos/eviljosh/easypost-python","forks_url":"https://api.github.com/repos/eviljosh/easypost-python/forks","keys_url":"https://api.github.com/repos/eviljosh/easypost-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eviljosh/easypost-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eviljosh/easypost-python/teams","hooks_url":"https://api.github.com/repos/eviljosh/easypost-python/hooks","issue_events_url":"https://api.github.com/repos/eviljosh/easypost-python/issues/events{/number}","events_url":"https://api.github.com/repos/eviljosh/easypost-python/events","assignees_url":"https://api.github.com/repos/eviljosh/easypost-python/assignees{/user}","branches_url":"https://api.github.com/repos/eviljosh/easypost-python/branches{/branch}","tags_url":"https://api.github.com/repos/eviljosh/easypost-python/tags","blobs_url":"https://api.github.com/repos/eviljosh/easypost-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eviljosh/easypost-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eviljosh/easypost-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/eviljosh/easypost-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eviljosh/easypost-python/statuses/{sha}","languages_url":"https://api.github.com/repos/eviljosh/easypost-python/languages","stargazers_url":"https://api.github.com/repos/eviljosh/easypost-python/stargazers","contributors_url":"https://api.github.com/repos/eviljosh/easypost-python/contributors","subscribers_url":"https://api.github.com/repos/eviljosh/easypost-python/subscribers","subscription_url":"https://api.github.com/repos/eviljosh/easypost-python/subscription","commits_url":"https://api.github.com/repos/eviljosh/easypost-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/eviljosh/easypost-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/eviljosh/easypost-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/eviljosh/easypost-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/eviljosh/easypost-python/contents/{+path}","compare_url":"https://api.github.com/repos/eviljosh/easypost-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eviljosh/easypost-python/merges","archive_url":"https://api.github.com/repos/eviljosh/easypost-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eviljosh/easypost-python/downloads","issues_url":"https://api.github.com/repos/eviljosh/easypost-python/issues{/number}","pulls_url":"https://api.github.com/repos/eviljosh/easypost-python/pulls{/number}","milestones_url":"https://api.github.com/repos/eviljosh/easypost-python/milestones{/number}","notifications_url":"https://api.github.com/repos/eviljosh/easypost-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eviljosh/easypost-python/labels{/name}","releases_url":"https://api.github.com/repos/eviljosh/easypost-python/releases{/id}","created_at":"2015-04-06T19:56:25Z","updated_at":"2015-04-06T19:56:25Z","pushed_at":"2015-04-06T20:40:37Z","git_url":"git://github.com/eviljosh/easypost-python.git","ssh_url":"git@github.com:eviljosh/easypost-python.git","clone_url":"https://github.com/eviljosh/easypost-python.git","svn_url":"https://github.com/eviljosh/easypost-python","homepage":"https://easypost.com/docs","size":164,"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":"EasyPost:master","ref":"master","sha":"d04e19138537dcca4e97a2c2edf741d1143ffc5e","user":{"login":"EasyPost","id":2636464,"avatar_url":"https://avatars.githubusercontent.com/u/2636464?v=3","gravatar_id":"","url":"https://api.github.com/users/EasyPost","html_url":"https://github.com/EasyPost","followers_url":"https://api.github.com/users/EasyPost/followers","following_url":"https://api.github.com/users/EasyPost/following{/other_user}","gists_url":"https://api.github.com/users/EasyPost/gists{/gist_id}","starred_url":"https://api.github.com/users/EasyPost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EasyPost/subscriptions","organizations_url":"https://api.github.com/users/EasyPost/orgs","repos_url":"https://api.github.com/users/EasyPost/repos","events_url":"https://api.github.com/users/EasyPost/events{/privacy}","received_events_url":"https://api.github.com/users/EasyPost/received_events","type":"Organization","site_admin":false},"repo":{"id":9408831,"name":"easypost-python","full_name":"EasyPost/easypost-python","owner":{"login":"EasyPost","id":2636464,"avatar_url":"https://avatars.githubusercontent.com/u/2636464?v=3","gravatar_id":"","url":"https://api.github.com/users/EasyPost","html_url":"https://github.com/EasyPost","followers_url":"https://api.github.com/users/EasyPost/followers","following_url":"https://api.github.com/users/EasyPost/following{/other_user}","gists_url":"https://api.github.com/users/EasyPost/gists{/gist_id}","starred_url":"https://api.github.com/users/EasyPost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EasyPost/subscriptions","organizations_url":"https://api.github.com/users/EasyPost/orgs","repos_url":"https://api.github.com/users/EasyPost/repos","events_url":"https://api.github.com/users/EasyPost/events{/privacy}","received_events_url":"https://api.github.com/users/EasyPost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EasyPost/easypost-python","description":"EasyPost Shipping API Client Library for Python","fork":false,"url":"https://api.github.com/repos/EasyPost/easypost-python","forks_url":"https://api.github.com/repos/EasyPost/easypost-python/forks","keys_url":"https://api.github.com/repos/EasyPost/easypost-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EasyPost/easypost-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EasyPost/easypost-python/teams","hooks_url":"https://api.github.com/repos/EasyPost/easypost-python/hooks","issue_events_url":"https://api.github.com/repos/EasyPost/easypost-python/issues/events{/number}","events_url":"https://api.github.com/repos/EasyPost/easypost-python/events","assignees_url":"https://api.github.com/repos/EasyPost/easypost-python/assignees{/user}","branches_url":"https://api.github.com/repos/EasyPost/easypost-python/branches{/branch}","tags_url":"https://api.github.com/repos/EasyPost/easypost-python/tags","blobs_url":"https://api.github.com/repos/EasyPost/easypost-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EasyPost/easypost-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EasyPost/easypost-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/EasyPost/easypost-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EasyPost/easypost-python/statuses/{sha}","languages_url":"https://api.github.com/repos/EasyPost/easypost-python/languages","stargazers_url":"https://api.github.com/repos/EasyPost/easypost-python/stargazers","contributors_url":"https://api.github.com/repos/EasyPost/easypost-python/contributors","subscribers_url":"https://api.github.com/repos/EasyPost/easypost-python/subscribers","subscription_url":"https://api.github.com/repos/EasyPost/easypost-python/subscription","commits_url":"https://api.github.com/repos/EasyPost/easypost-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/EasyPost/easypost-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/EasyPost/easypost-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/EasyPost/easypost-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/EasyPost/easypost-python/contents/{+path}","compare_url":"https://api.github.com/repos/EasyPost/easypost-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EasyPost/easypost-python/merges","archive_url":"https://api.github.com/repos/EasyPost/easypost-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EasyPost/easypost-python/downloads","issues_url":"https://api.github.com/repos/EasyPost/easypost-python/issues{/number}","pulls_url":"https://api.github.com/repos/EasyPost/easypost-python/pulls{/number}","milestones_url":"https://api.github.com/repos/EasyPost/easypost-python/milestones{/number}","notifications_url":"https://api.github.com/repos/EasyPost/easypost-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EasyPost/easypost-python/labels{/name}","releases_url":"https://api.github.com/repos/EasyPost/easypost-python/releases{/id}","created_at":"2013-04-13T04:50:23Z","updated_at":"2015-05-05T16:56:49Z","pushed_at":"2015-05-11T18:06:59Z","git_url":"git://github.com/EasyPost/easypost-python.git","ssh_url":"git@github.com:EasyPost/easypost-python.git","clone_url":"https://github.com/EasyPost/easypost-python.git","svn_url":"https://github.com/EasyPost/easypost-python","homepage":"https://easypost.com/docs","size":574,"stargazers_count":19,"watchers_count":19,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":2,"forks":13,"open_issues":2,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EasyPost/easypost-python/pulls/24"},"html":{"href":"https://github.com/EasyPost/easypost-python/pull/24"},"issue":{"href":"https://api.github.com/repos/EasyPost/easypost-python/issues/24"},"comments":{"href":"https://api.github.com/repos/EasyPost/easypost-python/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/EasyPost/easypost-python/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/EasyPost/easypost-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EasyPost/easypost-python/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/EasyPost/easypost-python/statuses/9dbde8545759f9111469c11f0302db1a3bf49bf1"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"gsinkin","id":176146,"avatar_url":"https://avatars.githubusercontent.com/u/176146?v=3","gravatar_id":"","url":"https://api.github.com/users/gsinkin","html_url":"https://github.com/gsinkin","followers_url":"https://api.github.com/users/gsinkin/followers","following_url":"https://api.github.com/users/gsinkin/following{/other_user}","gists_url":"https://api.github.com/users/gsinkin/gists{/gist_id}","starred_url":"https://api.github.com/users/gsinkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsinkin/subscriptions","organizations_url":"https://api.github.com/users/gsinkin/orgs","repos_url":"https://api.github.com/users/gsinkin/repos","events_url":"https://api.github.com/users/gsinkin/events{/privacy}","received_events_url":"https://api.github.com/users/gsinkin/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}