{"action":"created","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/9400","labels_url":"https://api.github.com/repos/sympy/sympy/issues/9400/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/9400/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/9400/events","html_url":"https://github.com/sympy/sympy/pull/9400","id":75973214,"number":9400,"title":"Catch AttributeError in as_terms","user":{"login":"jksuom","id":6929119,"avatar_url":"https://avatars.githubusercontent.com/u/6929119?v=3","gravatar_id":"","url":"https://api.github.com/users/jksuom","html_url":"https://github.com/jksuom","followers_url":"https://api.github.com/users/jksuom/followers","following_url":"https://api.github.com/users/jksuom/following{/other_user}","gists_url":"https://api.github.com/users/jksuom/gists{/gist_id}","starred_url":"https://api.github.com/users/jksuom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jksuom/subscriptions","organizations_url":"https://api.github.com/users/jksuom/orgs","repos_url":"https://api.github.com/users/jksuom/repos","events_url":"https://api.github.com/users/jksuom/events{/privacy}","received_events_url":"https://api.github.com/users/jksuom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-13T12:47:32Z","updated_at":"2015-05-13T19:00:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/9400","html_url":"https://github.com/sympy/sympy/pull/9400","diff_url":"https://github.com/sympy/sympy/pull/9400.diff","patch_url":"https://github.com/sympy/sympy/pull/9400.patch"},"body":"Printing of Add-expressions having arguments with no as_coeff_Mul- method currently raises an AttributeError in as_terms.\r\n\r\nThis commit makes it possible to examine such expressions by catching the exception.\r\n\r\nThere is also a simplified test for the original issue.\r\n\r\nFixes #9396"},"comment":{"url":"https://api.github.com/repos/sympy/sympy/issues/comments/101778228","html_url":"https://github.com/sympy/sympy/pull/9400#issuecomment-101778228","issue_url":"https://api.github.com/repos/sympy/sympy/issues/9400","id":101778228,"user":{"login":"jksuom","id":6929119,"avatar_url":"https://avatars.githubusercontent.com/u/6929119?v=3","gravatar_id":"","url":"https://api.github.com/users/jksuom","html_url":"https://github.com/jksuom","followers_url":"https://api.github.com/users/jksuom/followers","following_url":"https://api.github.com/users/jksuom/following{/other_user}","gists_url":"https://api.github.com/users/jksuom/gists{/gist_id}","starred_url":"https://api.github.com/users/jksuom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jksuom/subscriptions","organizations_url":"https://api.github.com/users/jksuom/orgs","repos_url":"https://api.github.com/users/jksuom/repos","events_url":"https://api.github.com/users/jksuom/events{/privacy}","received_events_url":"https://api.github.com/users/jksuom/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T19:00:55Z","updated_at":"2015-05-13T19:00:55Z","body":"I admit that this will not solve the problems arising from substitutions.\r\nIts sole purpose was just to make it easier to examine them. But maybe it is not necessary to print dubious expressions at all (so 9396 would not be an issue). If that is so, I shall close the PR."}}