{"action":"created","comment":{"url":"https://api.github.com/repos/sympy/sympy/pulls/comments/23804425","id":23804425,"diff_hunk":"@@ -840,7 +840,10 @@ def subs(self, *args, **kwargs):\n         sequence = list(sequence)\n         for i in range(len(sequence)):\n             o, n = sequence[i]\n-            so, sn = sympify(o), sympify(n)\n+            try:\n+                so, sn = sympify(o), sympify(n)\n+            except:","path":"sympy/core/basic.py","position":7,"original_position":7,"commit_id":"1b628840f1d24cf33518e98f7fa1a965981d7284","original_commit_id":"1b628840f1d24cf33518e98f7fa1a965981d7284","user":{"login":"debugger22","id":2821646,"avatar_url":"https://avatars.githubusercontent.com/u/2821646?v=3","gravatar_id":"","url":"https://api.github.com/users/debugger22","html_url":"https://github.com/debugger22","followers_url":"https://api.github.com/users/debugger22/followers","following_url":"https://api.github.com/users/debugger22/following{/other_user}","gists_url":"https://api.github.com/users/debugger22/gists{/gist_id}","starred_url":"https://api.github.com/users/debugger22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debugger22/subscriptions","organizations_url":"https://api.github.com/users/debugger22/orgs","repos_url":"https://api.github.com/users/debugger22/repos","events_url":"https://api.github.com/users/debugger22/events{/privacy}","received_events_url":"https://api.github.com/users/debugger22/received_events","type":"User","site_admin":false},"body":"Generic exception is bad.","created_at":"2015-01-29T21:31:41Z","updated_at":"2015-01-29T21:31:41Z","html_url":"https://github.com/sympy/sympy/pull/8900#discussion_r23804425","pull_request_url":"https://api.github.com/repos/sympy/sympy/pulls/8900","_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments/23804425"},"html":{"href":"https://github.com/sympy/sympy/pull/8900#discussion_r23804425"},"pull_request":{"href":"https://api.github.com/repos/sympy/sympy/pulls/8900"}}},"pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/8900","id":28130944,"html_url":"https://github.com/sympy/sympy/pull/8900","diff_url":"https://github.com/sympy/sympy/pull/8900.diff","patch_url":"https://github.com/sympy/sympy/pull/8900.patch","issue_url":"https://api.github.com/repos/sympy/sympy/issues/8900","number":8900,"state":"open","locked":false,"title":"Fixed Issue #8892","user":{"login":"amarveer29","id":5159169,"avatar_url":"https://avatars.githubusercontent.com/u/5159169?v=3","gravatar_id":"","url":"https://api.github.com/users/amarveer29","html_url":"https://github.com/amarveer29","followers_url":"https://api.github.com/users/amarveer29/followers","following_url":"https://api.github.com/users/amarveer29/following{/other_user}","gists_url":"https://api.github.com/users/amarveer29/gists{/gist_id}","starred_url":"https://api.github.com/users/amarveer29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amarveer29/subscriptions","organizations_url":"https://api.github.com/users/amarveer29/orgs","repos_url":"https://api.github.com/users/amarveer29/repos","events_url":"https://api.github.com/users/amarveer29/events{/privacy}","received_events_url":"https://api.github.com/users/amarveer29/received_events","type":"User","site_admin":false},"body":"Use the try except approach to get better error message when try to substitute vector in subs.","created_at":"2015-01-27T18:10:38Z","updated_at":"2015-01-29T21:31:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fb20c453f0800d1c3555691261424c8d1ea3ad0d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sympy/sympy/pulls/8900/commits","review_comments_url":"https://api.github.com/repos/sympy/sympy/pulls/8900/comments","review_comment_url":"https://api.github.com/repos/sympy/sympy/pulls/comments/{number}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/8900/comments","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/1b628840f1d24cf33518e98f7fa1a965981d7284","head":{"label":"amarveer29:8892_subs_exception","ref":"8892_subs_exception","sha":"1b628840f1d24cf33518e98f7fa1a965981d7284","user":{"login":"amarveer29","id":5159169,"avatar_url":"https://avatars.githubusercontent.com/u/5159169?v=3","gravatar_id":"","url":"https://api.github.com/users/amarveer29","html_url":"https://github.com/amarveer29","followers_url":"https://api.github.com/users/amarveer29/followers","following_url":"https://api.github.com/users/amarveer29/following{/other_user}","gists_url":"https://api.github.com/users/amarveer29/gists{/gist_id}","starred_url":"https://api.github.com/users/amarveer29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amarveer29/subscriptions","organizations_url":"https://api.github.com/users/amarveer29/orgs","repos_url":"https://api.github.com/users/amarveer29/repos","events_url":"https://api.github.com/users/amarveer29/events{/privacy}","received_events_url":"https://api.github.com/users/amarveer29/received_events","type":"User","site_admin":false},"repo":{"id":29849991,"name":"sympy","full_name":"amarveer29/sympy","owner":{"login":"amarveer29","id":5159169,"avatar_url":"https://avatars.githubusercontent.com/u/5159169?v=3","gravatar_id":"","url":"https://api.github.com/users/amarveer29","html_url":"https://github.com/amarveer29","followers_url":"https://api.github.com/users/amarveer29/followers","following_url":"https://api.github.com/users/amarveer29/following{/other_user}","gists_url":"https://api.github.com/users/amarveer29/gists{/gist_id}","starred_url":"https://api.github.com/users/amarveer29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amarveer29/subscriptions","organizations_url":"https://api.github.com/users/amarveer29/orgs","repos_url":"https://api.github.com/users/amarveer29/repos","events_url":"https://api.github.com/users/amarveer29/events{/privacy}","received_events_url":"https://api.github.com/users/amarveer29/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amarveer29/sympy","description":"A computer algebra system written in pure Python","fork":true,"url":"https://api.github.com/repos/amarveer29/sympy","forks_url":"https://api.github.com/repos/amarveer29/sympy/forks","keys_url":"https://api.github.com/repos/amarveer29/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amarveer29/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amarveer29/sympy/teams","hooks_url":"https://api.github.com/repos/amarveer29/sympy/hooks","issue_events_url":"https://api.github.com/repos/amarveer29/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/amarveer29/sympy/events","assignees_url":"https://api.github.com/repos/amarveer29/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/amarveer29/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/amarveer29/sympy/tags","blobs_url":"https://api.github.com/repos/amarveer29/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amarveer29/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amarveer29/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/amarveer29/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amarveer29/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/amarveer29/sympy/languages","stargazers_url":"https://api.github.com/repos/amarveer29/sympy/stargazers","contributors_url":"https://api.github.com/repos/amarveer29/sympy/contributors","subscribers_url":"https://api.github.com/repos/amarveer29/sympy/subscribers","subscription_url":"https://api.github.com/repos/amarveer29/sympy/subscription","commits_url":"https://api.github.com/repos/amarveer29/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/amarveer29/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/amarveer29/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/amarveer29/sympy/issues/comments/{number}","contents_url":"https://api.github.com/repos/amarveer29/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/amarveer29/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amarveer29/sympy/merges","archive_url":"https://api.github.com/repos/amarveer29/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amarveer29/sympy/downloads","issues_url":"https://api.github.com/repos/amarveer29/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/amarveer29/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/amarveer29/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/amarveer29/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amarveer29/sympy/labels{/name}","releases_url":"https://api.github.com/repos/amarveer29/sympy/releases{/id}","created_at":"2015-01-26T07:30:36Z","updated_at":"2015-01-26T07:30:42Z","pushed_at":"2015-01-28T13:01:06Z","git_url":"git://github.com/amarveer29/sympy.git","ssh_url":"git@github.com:amarveer29/sympy.git","clone_url":"https://github.com/amarveer29/sympy.git","svn_url":"https://github.com/amarveer29/sympy","homepage":"http://sympy.org/","size":66300,"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":"sympy:master","ref":"master","sha":"4c57ccfd824ecd33fc02b8c4dd258c7dfce30f9e","user":{"login":"sympy","id":260832,"avatar_url":"https://avatars.githubusercontent.com/u/260832?v=3","gravatar_id":"","url":"https://api.github.com/users/sympy","html_url":"https://github.com/sympy","followers_url":"https://api.github.com/users/sympy/followers","following_url":"https://api.github.com/users/sympy/following{/other_user}","gists_url":"https://api.github.com/users/sympy/gists{/gist_id}","starred_url":"https://api.github.com/users/sympy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sympy/subscriptions","organizations_url":"https://api.github.com/users/sympy/orgs","repos_url":"https://api.github.com/users/sympy/repos","events_url":"https://api.github.com/users/sympy/events{/privacy}","received_events_url":"https://api.github.com/users/sympy/received_events","type":"Organization","site_admin":false},"repo":{"id":640534,"name":"sympy","full_name":"sympy/sympy","owner":{"login":"sympy","id":260832,"avatar_url":"https://avatars.githubusercontent.com/u/260832?v=3","gravatar_id":"","url":"https://api.github.com/users/sympy","html_url":"https://github.com/sympy","followers_url":"https://api.github.com/users/sympy/followers","following_url":"https://api.github.com/users/sympy/following{/other_user}","gists_url":"https://api.github.com/users/sympy/gists{/gist_id}","starred_url":"https://api.github.com/users/sympy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sympy/subscriptions","organizations_url":"https://api.github.com/users/sympy/orgs","repos_url":"https://api.github.com/users/sympy/repos","events_url":"https://api.github.com/users/sympy/events{/privacy}","received_events_url":"https://api.github.com/users/sympy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sympy/sympy","description":"A computer algebra system written in pure Python","fork":false,"url":"https://api.github.com/repos/sympy/sympy","forks_url":"https://api.github.com/repos/sympy/sympy/forks","keys_url":"https://api.github.com/repos/sympy/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sympy/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sympy/sympy/teams","hooks_url":"https://api.github.com/repos/sympy/sympy/hooks","issue_events_url":"https://api.github.com/repos/sympy/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/sympy/sympy/events","assignees_url":"https://api.github.com/repos/sympy/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/sympy/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/sympy/sympy/tags","blobs_url":"https://api.github.com/repos/sympy/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sympy/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sympy/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sympy/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/sympy/sympy/languages","stargazers_url":"https://api.github.com/repos/sympy/sympy/stargazers","contributors_url":"https://api.github.com/repos/sympy/sympy/contributors","subscribers_url":"https://api.github.com/repos/sympy/sympy/subscribers","subscription_url":"https://api.github.com/repos/sympy/sympy/subscription","commits_url":"https://api.github.com/repos/sympy/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sympy/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sympy/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sympy/sympy/issues/comments/{number}","contents_url":"https://api.github.com/repos/sympy/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/sympy/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sympy/sympy/merges","archive_url":"https://api.github.com/repos/sympy/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sympy/sympy/downloads","issues_url":"https://api.github.com/repos/sympy/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/sympy/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/sympy/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/sympy/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sympy/sympy/labels{/name}","releases_url":"https://api.github.com/repos/sympy/sympy/releases{/id}","created_at":"2010-04-30T20:37:14Z","updated_at":"2015-01-29T17:22:01Z","pushed_at":"2015-01-29T17:22:01Z","git_url":"git://github.com/sympy/sympy.git","ssh_url":"git@github.com:sympy/sympy.git","clone_url":"https://github.com/sympy/sympy.git","svn_url":"https://github.com/sympy/sympy","homepage":"http://sympy.org/","size":138771,"stargazers_count":1896,"watchers_count":1896,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":905,"mirror_url":null,"open_issues_count":1798,"forks":905,"open_issues":1798,"watchers":1896,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/8900"},"html":{"href":"https://github.com/sympy/sympy/pull/8900"},"issue":{"href":"https://api.github.com/repos/sympy/sympy/issues/8900"},"comments":{"href":"https://api.github.com/repos/sympy/sympy/issues/8900/comments"},"review_comments":{"href":"https://api.github.com/repos/sympy/sympy/pulls/8900/comments"},"review_comment":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/sympy/sympy/pulls/8900/commits"},"statuses":{"href":"https://api.github.com/repos/sympy/sympy/statuses/1b628840f1d24cf33518e98f7fa1a965981d7284"}}}}