{"action":"created","issue":{"url":"https://api.github.com/repos/sloria/TextBlob/issues/76","labels_url":"https://api.github.com/repos/sloria/TextBlob/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/sloria/TextBlob/issues/76/comments","events_url":"https://api.github.com/repos/sloria/TextBlob/issues/76/events","html_url":"https://github.com/sloria/TextBlob/issues/76","id":53922528,"number":76,"title":"when translation fails","user":{"login":"az0","id":933680,"avatar_url":"https://avatars.githubusercontent.com/u/933680?v=3","gravatar_id":"","url":"https://api.github.com/users/az0","html_url":"https://github.com/az0","followers_url":"https://api.github.com/users/az0/followers","following_url":"https://api.github.com/users/az0/following{/other_user}","gists_url":"https://api.github.com/users/az0/gists{/gist_id}","starred_url":"https://api.github.com/users/az0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/az0/subscriptions","organizations_url":"https://api.github.com/users/az0/orgs","repos_url":"https://api.github.com/users/az0/repos","events_url":"https://api.github.com/users/az0/events{/privacy}","received_events_url":"https://api.github.com/users/az0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-09T22:23:46Z","updated_at":"2015-06-10T15:35:56Z","closed_at":"2015-06-10T11:16:07Z","body":"Would you please test and document the behavior when translation fails, such as when the language is not supported (distinct from an HTTP error)?\r\n\r\nExample (Cherokee):\r\n\r\n````python\r\nfrom textblob import TextBlob\r\ntxt=u'    Ꭰ Ꭱ Ꭲ Ꭳ Ꭴ Ꭵ Ꭶ Ꭷ Ꭸ Ꭹ Ꭺ Ꭻ Ꭼ Ꭽ Ꭾ Ꭿ Ꮀ Ꮁ Ꮂ Ꮃ Ꮄ Ꮅ Ꮆ Ꮇ Ꮈ Ꮉ Ꮊ Ꮋ Ꮌ Ꮍ Ꮎ Ꮏ Ꮐ Ꮑ Ꮒ Ꮓ Ꮔ Ꮕ Ꮖ Ꮗ Ꮘ Ꮙ Ꮚ Ꮛ Ꮜ Ꮝ Ꮞ Ꮟ Ꮠ Ꮡ Ꮢ Ꮣ Ꮤ Ꮥ Ꮦ Ꮧ Ꮨ Ꮩ Ꮪ Ꮫ Ꮬ Ꮭ Ꮮ Ꮯ Ꮰ Ꮱ Ꮲ Ꮳ Ꮴ Ꮵ Ꮶ Ꮷ Ꮸ Ꮹ Ꮺ Ꮻ Ꮼ Ꮽ Ꮾ Ꮿ Ᏸ Ᏹ Ᏺ Ᏻ Ᏼ '\r\nbl=TextBlob(txt)\r\nbl_en=bl.translate(to='en')\r\n````"},"comment":{"url":"https://api.github.com/repos/sloria/TextBlob/issues/comments/110799739","html_url":"https://github.com/sloria/TextBlob/issues/76#issuecomment-110799739","issue_url":"https://api.github.com/repos/sloria/TextBlob/issues/76","id":110799739,"user":{"login":"az0","id":933680,"avatar_url":"https://avatars.githubusercontent.com/u/933680?v=3","gravatar_id":"","url":"https://api.github.com/users/az0","html_url":"https://github.com/az0","followers_url":"https://api.github.com/users/az0/followers","following_url":"https://api.github.com/users/az0/following{/other_user}","gists_url":"https://api.github.com/users/az0/gists{/gist_id}","starred_url":"https://api.github.com/users/az0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/az0/subscriptions","organizations_url":"https://api.github.com/users/az0/orgs","repos_url":"https://api.github.com/users/az0/repos","events_url":"https://api.github.com/users/az0/events{/privacy}","received_events_url":"https://api.github.com/users/az0/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T15:35:56Z","updated_at":"2015-06-10T15:35:56Z","body":"Yes, either return None or raise an exception. \r\n\r\nThanks"}}