{"action":"opened","issue":{"url":"https://api.github.com/repos/Suyash458/WiktionaryParser/issues/31","repository_url":"https://api.github.com/repos/Suyash458/WiktionaryParser","labels_url":"https://api.github.com/repos/Suyash458/WiktionaryParser/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/Suyash458/WiktionaryParser/issues/31/comments","events_url":"https://api.github.com/repos/Suyash458/WiktionaryParser/issues/31/events","html_url":"https://github.com/Suyash458/WiktionaryParser/issues/31","id":338758482,"node_id":"MDU6SXNzdWUzMzg3NTg0ODI=","number":31,"title":"Uncaught error when selected language for the word does not exist","user":{"login":"C0rn3j","id":1641362,"node_id":"MDQ6VXNlcjE2NDEzNjI=","avatar_url":"https://avatars2.githubusercontent.com/u/1641362?v=4","gravatar_id":"","url":"https://api.github.com/users/C0rn3j","html_url":"https://github.com/C0rn3j","followers_url":"https://api.github.com/users/C0rn3j/followers","following_url":"https://api.github.com/users/C0rn3j/following{/other_user}","gists_url":"https://api.github.com/users/C0rn3j/gists{/gist_id}","starred_url":"https://api.github.com/users/C0rn3j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C0rn3j/subscriptions","organizations_url":"https://api.github.com/users/C0rn3j/orgs","repos_url":"https://api.github.com/users/C0rn3j/repos","events_url":"https://api.github.com/users/C0rn3j/events{/privacy}","received_events_url":"https://api.github.com/users/C0rn3j/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-05T23:34:16Z","updated_at":"2018-07-05T23:34:16Z","closed_at":null,"author_association":"NONE","body":"The word 'behagelig' for example has only a definition in Norwegian Bokmål.\r\n\r\nhttps://en.wiktionary.org/wiki/behagelig#Norwegian_Bokm%C3%A5l\r\n\r\nIf I try to query for the language 'Norwegian Nynorsk' for example, I get a following error:\r\n```\r\nparser.fetch(\"behagelig\", \"norwegian nynorsk\")\r\n```\r\n```\r\nTraceback (most recent call last):\r\n  File \"./scrap.py\", line 24, in <module>\r\n    another_word = parser.fetch(wordToScrap, NN)\r\n  File \"/home/c0rn3j/wikivirtpython/lib/python3.6/site-packages/wiktionaryparser/WikiParse.py\", line 233, in fetch\r\n    return self.get_word_data(language.lower())\r\n  File \"/home/c0rn3j/wikivirtpython/lib/python3.6/site-packages/wiktionaryparser/WikiParse.py\", line 84, in get_word_data\r\n    if index.startswith(start_index):\r\nTypeError: startswith first arg must be str or a tuple of str, not NoneType\r\n```"}}
{"actor":{"display_login":"C0rn3j"}}