{"action":"opened","issue":{"url":"https://api.github.com/repos/libgit2/pygit2/issues/531","labels_url":"https://api.github.com/repos/libgit2/pygit2/issues/531/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/pygit2/issues/531/comments","events_url":"https://api.github.com/repos/libgit2/pygit2/issues/531/events","html_url":"https://github.com/libgit2/pygit2/issues/531","id":81623461,"number":531,"title":"Document the exception raised by discover_repository","user":{"login":"rholy","id":5390407,"avatar_url":"https://avatars.githubusercontent.com/u/5390407?v=3","gravatar_id":"","url":"https://api.github.com/users/rholy","html_url":"https://github.com/rholy","followers_url":"https://api.github.com/users/rholy/followers","following_url":"https://api.github.com/users/rholy/following{/other_user}","gists_url":"https://api.github.com/users/rholy/gists{/gist_id}","starred_url":"https://api.github.com/users/rholy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rholy/subscriptions","organizations_url":"https://api.github.com/users/rholy/orgs","repos_url":"https://api.github.com/users/rholy/repos","events_url":"https://api.github.com/users/rholy/events{/privacy}","received_events_url":"https://api.github.com/users/rholy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-27T21:01:31Z","updated_at":"2015-05-27T21:01:31Z","closed_at":null,"body":"The function `discover_repository` apparently raises `KeyError` if it cannot find a repository. I think that it is not appropriate and it also is not documented. Could it be fixed, please?"}}