{"action":"created","comment":{"url":"https://api.github.com/repos/pymedusa/Medusa/pulls/comments/87374069","pull_request_review_id":7988044,"id":87374069,"diff_hunk":"@@ -139,8 +141,12 @@ def _show_search(self, show, request_language='en'):\n         \"\"\"\n         try:\n             results = self.search_api.search_series_get(name=show, accept_language=request_language)\n+        except ApiException as e:\n+            raise IndexerShowNotFound(\n+                'Show search failed in getting a result with reason: %s (%s)' % (e.reason, e.status)\n+            )\n         except Exception as e:\n-            raise IndexerException('Show search failed in getting a result with error: %r', e)\n+            raise IndexerException('Show search failed in getting a result with error: %r' % e)","path":"medusa/indexers/tvdbv2/tvdbv2_api.py","position":24,"original_position":24,"commit_id":"2f2a7494eaad53b2c16ff5d5648b3d3806d72be2","original_commit_id":"2f2a7494eaad53b2c16ff5d5648b3d3806d72be2","user":{"login":"fernandog","id":2620870,"avatar_url":"https://avatars.githubusercontent.com/u/2620870?v=3","gravatar_id":"","url":"https://api.github.com/users/fernandog","html_url":"https://github.com/fernandog","followers_url":"https://api.github.com/users/fernandog/followers","following_url":"https://api.github.com/users/fernandog/following{/other_user}","gists_url":"https://api.github.com/users/fernandog/gists{/gist_id}","starred_url":"https://api.github.com/users/fernandog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fernandog/subscriptions","organizations_url":"https://api.github.com/users/fernandog/orgs","repos_url":"https://api.github.com/users/fernandog/repos","events_url":"https://api.github.com/users/fernandog/events{/privacy}","received_events_url":"https://api.github.com/users/fernandog/received_events","type":"User","site_admin":false},"body":"@p0psicles can't you catch `IndexerException` instead of `exception` ?","created_at":"2016-11-10T11:12:51Z","updated_at":"2016-11-10T11:12:51Z","html_url":"https://github.com/pymedusa/Medusa/pull/1477#discussion_r87374069","pull_request_url":"https://api.github.com/repos/pymedusa/Medusa/pulls/1477","_links":{"self":{"href":"https://api.github.com/repos/pymedusa/Medusa/pulls/comments/87374069"},"html":{"href":"https://github.com/pymedusa/Medusa/pull/1477#discussion_r87374069"},"pull_request":{"href":"https://api.github.com/repos/pymedusa/Medusa/pulls/1477"}}},"pull_request":{"url":"https://api.github.com/repos/pymedusa/Medusa/pulls/1477","id":92455740,"html_url":"https://github.com/pymedusa/Medusa/pull/1477","diff_url":"https://github.com/pymedusa/Medusa/pull/1477.diff","patch_url":"https://github.com/pymedusa/Medusa/pull/1477.patch","issue_url":"https://api.github.com/repos/pymedusa/Medusa/issues/1477","number":1477,"state":"open","locked":false,"title":"tvdb api v2 exception handling and cleanups","user":{"login":"p0psicles","id":1331394,"avatar_url":"https://avatars.githubusercontent.com/u/1331394?v=3","gravatar_id":"","url":"https://api.github.com/users/p0psicles","html_url":"https://github.com/p0psicles","followers_url":"https://api.github.com/users/p0psicles/followers","following_url":"https://api.github.com/users/p0psicles/following{/other_user}","gists_url":"https://api.github.com/users/p0psicles/gists{/gist_id}","starred_url":"https://api.github.com/users/p0psicles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p0psicles/subscriptions","organizations_url":"https://api.github.com/users/p0psicles/orgs","repos_url":"https://api.github.com/users/p0psicles/repos","events_url":"https://api.github.com/users/p0psicles/events{/privacy}","received_events_url":"https://api.github.com/users/p0psicles/received_events","type":"User","site_admin":false},"body":"- [ ] PR is based on the DEVELOP branch\r\n- [ ] Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review\r\n- [ ] Read [contribution guide](https://github.com/PyMedusa/SickRage/blob/master/.github/CONTRIBUTING.md)\r\n\r\nI've used the PR to cleanup the exceptions, as allot of them still had the snake_case format. I've also added better exception handling for handling exceptions raised by the tvdb api.\r\n\r\nThe LanguageNotFound exception is not used here, but will in other PR's, for handling switching language for existing shows.","created_at":"2016-11-05T14:53:25Z","updated_at":"2016-11-10T11:12:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"059aaf2d85231a17c4e712d8d9fbcf8db85d00b8","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pymedusa/Medusa/milestones/14","html_url":"https://github.com/pymedusa/Medusa/milestones/0.1.8","labels_url":"https://api.github.com/repos/pymedusa/Medusa/milestones/14/labels","id":1979004,"number":14,"title":"0.1.8","description":"","creator":{"login":"OmgImAlexis","id":6525926,"avatar_url":"https://avatars.githubusercontent.com/u/6525926?v=3","gravatar_id":"","url":"https://api.github.com/users/OmgImAlexis","html_url":"https://github.com/OmgImAlexis","followers_url":"https://api.github.com/users/OmgImAlexis/followers","following_url":"https://api.github.com/users/OmgImAlexis/following{/other_user}","gists_url":"https://api.github.com/users/OmgImAlexis/gists{/gist_id}","starred_url":"https://api.github.com/users/OmgImAlexis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmgImAlexis/subscriptions","organizations_url":"https://api.github.com/users/OmgImAlexis/orgs","repos_url":"https://api.github.com/users/OmgImAlexis/repos","events_url":"https://api.github.com/users/OmgImAlexis/events{/privacy}","received_events_url":"https://api.github.com/users/OmgImAlexis/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":132,"state":"open","created_at":"2016-09-01T23:39:59Z","updated_at":"2016-11-10T08:28:44Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/pymedusa/Medusa/pulls/1477/commits","review_comments_url":"https://api.github.com/repos/pymedusa/Medusa/pulls/1477/comments","review_comment_url":"https://api.github.com/repos/pymedusa/Medusa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pymedusa/Medusa/issues/1477/comments","statuses_url":"https://api.github.com/repos/pymedusa/Medusa/statuses/2f2a7494eaad53b2c16ff5d5648b3d3806d72be2","head":{"label":"pymedusa:feature/search-show-lang-feedback","ref":"feature/search-show-lang-feedback","sha":"2f2a7494eaad53b2c16ff5d5648b3d3806d72be2","user":{"login":"pymedusa","id":16712498,"avatar_url":"https://avatars.githubusercontent.com/u/16712498?v=3","gravatar_id":"","url":"https://api.github.com/users/pymedusa","html_url":"https://github.com/pymedusa","followers_url":"https://api.github.com/users/pymedusa/followers","following_url":"https://api.github.com/users/pymedusa/following{/other_user}","gists_url":"https://api.github.com/users/pymedusa/gists{/gist_id}","starred_url":"https://api.github.com/users/pymedusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pymedusa/subscriptions","organizations_url":"https://api.github.com/users/pymedusa/orgs","repos_url":"https://api.github.com/users/pymedusa/repos","events_url":"https://api.github.com/users/pymedusa/events{/privacy}","received_events_url":"https://api.github.com/users/pymedusa/received_events","type":"Organization","site_admin":false},"repo":{"id":52334681,"name":"Medusa","full_name":"pymedusa/Medusa","owner":{"login":"pymedusa","id":16712498,"avatar_url":"https://avatars.githubusercontent.com/u/16712498?v=3","gravatar_id":"","url":"https://api.github.com/users/pymedusa","html_url":"https://github.com/pymedusa","followers_url":"https://api.github.com/users/pymedusa/followers","following_url":"https://api.github.com/users/pymedusa/following{/other_user}","gists_url":"https://api.github.com/users/pymedusa/gists{/gist_id}","starred_url":"https://api.github.com/users/pymedusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pymedusa/subscriptions","organizations_url":"https://api.github.com/users/pymedusa/orgs","repos_url":"https://api.github.com/users/pymedusa/repos","events_url":"https://api.github.com/users/pymedusa/events{/privacy}","received_events_url":"https://api.github.com/users/pymedusa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pymedusa/Medusa","description":"Now with the most wanted feature: **Manual Search**. You can choose what to download! IRC: #pymedusa","fork":false,"url":"https://api.github.com/repos/pymedusa/Medusa","forks_url":"https://api.github.com/repos/pymedusa/Medusa/forks","keys_url":"https://api.github.com/repos/pymedusa/Medusa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pymedusa/Medusa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pymedusa/Medusa/teams","hooks_url":"https://api.github.com/repos/pymedusa/Medusa/hooks","issue_events_url":"https://api.github.com/repos/pymedusa/Medusa/issues/events{/number}","events_url":"https://api.github.com/repos/pymedusa/Medusa/events","assignees_url":"https://api.github.com/repos/pymedusa/Medusa/assignees{/user}","branches_url":"https://api.github.com/repos/pymedusa/Medusa/branches{/branch}","tags_url":"https://api.github.com/repos/pymedusa/Medusa/tags","blobs_url":"https://api.github.com/repos/pymedusa/Medusa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pymedusa/Medusa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pymedusa/Medusa/git/refs{/sha}","trees_url":"https://api.github.com/repos/pymedusa/Medusa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pymedusa/Medusa/statuses/{sha}","languages_url":"https://api.github.com/repos/pymedusa/Medusa/languages","stargazers_url":"https://api.github.com/repos/pymedusa/Medusa/stargazers","contributors_url":"https://api.github.com/repos/pymedusa/Medusa/contributors","subscribers_url":"https://api.github.com/repos/pymedusa/Medusa/subscribers","subscription_url":"https://api.github.com/repos/pymedusa/Medusa/subscription","commits_url":"https://api.github.com/repos/pymedusa/Medusa/commits{/sha}","git_commits_url":"https://api.github.com/repos/pymedusa/Medusa/git/commits{/sha}","comments_url":"https://api.github.com/repos/pymedusa/Medusa/comments{/number}","issue_comment_url":"https://api.github.com/repos/pymedusa/Medusa/issues/comments{/number}","contents_url":"https://api.github.com/repos/pymedusa/Medusa/contents/{+path}","compare_url":"https://api.github.com/repos/pymedusa/Medusa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pymedusa/Medusa/merges","archive_url":"https://api.github.com/repos/pymedusa/Medusa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pymedusa/Medusa/downloads","issues_url":"https://api.github.com/repos/pymedusa/Medusa/issues{/number}","pulls_url":"https://api.github.com/repos/pymedusa/Medusa/pulls{/number}","milestones_url":"https://api.github.com/repos/pymedusa/Medusa/milestones{/number}","notifications_url":"https://api.github.com/repos/pymedusa/Medusa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pymedusa/Medusa/labels{/name}","releases_url":"https://api.github.com/repos/pymedusa/Medusa/releases{/id}","deployments_url":"https://api.github.com/repos/pymedusa/Medusa/deployments","created_at":"2016-02-23T06:02:11Z","updated_at":"2016-11-02T00:06:38Z","pushed_at":"2016-11-10T09:34:00Z","git_url":"git://github.com/pymedusa/Medusa.git","ssh_url":"git@github.com:pymedusa/Medusa.git","clone_url":"https://github.com/pymedusa/Medusa.git","svn_url":"https://github.com/pymedusa/Medusa","homepage":"","size":71465,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":72,"forks":12,"open_issues":72,"watchers":29,"default_branch":"master"}},"base":{"label":"pymedusa:develop","ref":"develop","sha":"696f7d7747b43f41262da83e0851189ec7c9fb6a","user":{"login":"pymedusa","id":16712498,"avatar_url":"https://avatars.githubusercontent.com/u/16712498?v=3","gravatar_id":"","url":"https://api.github.com/users/pymedusa","html_url":"https://github.com/pymedusa","followers_url":"https://api.github.com/users/pymedusa/followers","following_url":"https://api.github.com/users/pymedusa/following{/other_user}","gists_url":"https://api.github.com/users/pymedusa/gists{/gist_id}","starred_url":"https://api.github.com/users/pymedusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pymedusa/subscriptions","organizations_url":"https://api.github.com/users/pymedusa/orgs","repos_url":"https://api.github.com/users/pymedusa/repos","events_url":"https://api.github.com/users/pymedusa/events{/privacy}","received_events_url":"https://api.github.com/users/pymedusa/received_events","type":"Organization","site_admin":false},"repo":{"id":52334681,"name":"Medusa","full_name":"pymedusa/Medusa","owner":{"login":"pymedusa","id":16712498,"avatar_url":"https://avatars.githubusercontent.com/u/16712498?v=3","gravatar_id":"","url":"https://api.github.com/users/pymedusa","html_url":"https://github.com/pymedusa","followers_url":"https://api.github.com/users/pymedusa/followers","following_url":"https://api.github.com/users/pymedusa/following{/other_user}","gists_url":"https://api.github.com/users/pymedusa/gists{/gist_id}","starred_url":"https://api.github.com/users/pymedusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pymedusa/subscriptions","organizations_url":"https://api.github.com/users/pymedusa/orgs","repos_url":"https://api.github.com/users/pymedusa/repos","events_url":"https://api.github.com/users/pymedusa/events{/privacy}","received_events_url":"https://api.github.com/users/pymedusa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pymedusa/Medusa","description":"Now with the most wanted feature: **Manual Search**. You can choose what to download! IRC: #pymedusa","fork":false,"url":"https://api.github.com/repos/pymedusa/Medusa","forks_url":"https://api.github.com/repos/pymedusa/Medusa/forks","keys_url":"https://api.github.com/repos/pymedusa/Medusa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pymedusa/Medusa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pymedusa/Medusa/teams","hooks_url":"https://api.github.com/repos/pymedusa/Medusa/hooks","issue_events_url":"https://api.github.com/repos/pymedusa/Medusa/issues/events{/number}","events_url":"https://api.github.com/repos/pymedusa/Medusa/events","assignees_url":"https://api.github.com/repos/pymedusa/Medusa/assignees{/user}","branches_url":"https://api.github.com/repos/pymedusa/Medusa/branches{/branch}","tags_url":"https://api.github.com/repos/pymedusa/Medusa/tags","blobs_url":"https://api.github.com/repos/pymedusa/Medusa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pymedusa/Medusa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pymedusa/Medusa/git/refs{/sha}","trees_url":"https://api.github.com/repos/pymedusa/Medusa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pymedusa/Medusa/statuses/{sha}","languages_url":"https://api.github.com/repos/pymedusa/Medusa/languages","stargazers_url":"https://api.github.com/repos/pymedusa/Medusa/stargazers","contributors_url":"https://api.github.com/repos/pymedusa/Medusa/contributors","subscribers_url":"https://api.github.com/repos/pymedusa/Medusa/subscribers","subscription_url":"https://api.github.com/repos/pymedusa/Medusa/subscription","commits_url":"https://api.github.com/repos/pymedusa/Medusa/commits{/sha}","git_commits_url":"https://api.github.com/repos/pymedusa/Medusa/git/commits{/sha}","comments_url":"https://api.github.com/repos/pymedusa/Medusa/comments{/number}","issue_comment_url":"https://api.github.com/repos/pymedusa/Medusa/issues/comments{/number}","contents_url":"https://api.github.com/repos/pymedusa/Medusa/contents/{+path}","compare_url":"https://api.github.com/repos/pymedusa/Medusa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pymedusa/Medusa/merges","archive_url":"https://api.github.com/repos/pymedusa/Medusa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pymedusa/Medusa/downloads","issues_url":"https://api.github.com/repos/pymedusa/Medusa/issues{/number}","pulls_url":"https://api.github.com/repos/pymedusa/Medusa/pulls{/number}","milestones_url":"https://api.github.com/repos/pymedusa/Medusa/milestones{/number}","notifications_url":"https://api.github.com/repos/pymedusa/Medusa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pymedusa/Medusa/labels{/name}","releases_url":"https://api.github.com/repos/pymedusa/Medusa/releases{/id}","deployments_url":"https://api.github.com/repos/pymedusa/Medusa/deployments","created_at":"2016-02-23T06:02:11Z","updated_at":"2016-11-02T00:06:38Z","pushed_at":"2016-11-10T09:34:00Z","git_url":"git://github.com/pymedusa/Medusa.git","ssh_url":"git@github.com:pymedusa/Medusa.git","clone_url":"https://github.com/pymedusa/Medusa.git","svn_url":"https://github.com/pymedusa/Medusa","homepage":"","size":71465,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":72,"forks":12,"open_issues":72,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pymedusa/Medusa/pulls/1477"},"html":{"href":"https://github.com/pymedusa/Medusa/pull/1477"},"issue":{"href":"https://api.github.com/repos/pymedusa/Medusa/issues/1477"},"comments":{"href":"https://api.github.com/repos/pymedusa/Medusa/issues/1477/comments"},"review_comments":{"href":"https://api.github.com/repos/pymedusa/Medusa/pulls/1477/comments"},"review_comment":{"href":"https://api.github.com/repos/pymedusa/Medusa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pymedusa/Medusa/pulls/1477/commits"},"statuses":{"href":"https://api.github.com/repos/pymedusa/Medusa/statuses/2f2a7494eaad53b2c16ff5d5648b3d3806d72be2"}}}}
{"actor":{"display_login":"fernandog"}}