{"action":"created","issue":{"url":"https://api.github.com/repos/kissiel/bt_helper/issues/7","repository_url":"https://api.github.com/repos/kissiel/bt_helper","labels_url":"https://api.github.com/repos/kissiel/bt_helper/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/kissiel/bt_helper/issues/7/comments","events_url":"https://api.github.com/repos/kissiel/bt_helper/issues/7/events","html_url":"https://github.com/kissiel/bt_helper/pull/7","id":142617124,"number":7,"title":"Add exception handler to connect action.","user":{"login":"Cypresslin","id":4279327,"avatar_url":"https://avatars.githubusercontent.com/u/4279327?v=3","gravatar_id":"","url":"https://api.github.com/users/Cypresslin","html_url":"https://github.com/Cypresslin","followers_url":"https://api.github.com/users/Cypresslin/followers","following_url":"https://api.github.com/users/Cypresslin/following{/other_user}","gists_url":"https://api.github.com/users/Cypresslin/gists{/gist_id}","starred_url":"https://api.github.com/users/Cypresslin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cypresslin/subscriptions","organizations_url":"https://api.github.com/users/Cypresslin/orgs","repos_url":"https://api.github.com/users/Cypresslin/repos","events_url":"https://api.github.com/users/Cypresslin/events{/privacy}","received_events_url":"https://api.github.com/users/Cypresslin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-22T11:08:00Z","updated_at":"2016-03-23T20:56:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kissiel/bt_helper/pulls/7","html_url":"https://github.com/kissiel/bt_helper/pull/7","diff_url":"https://github.com/kissiel/bt_helper/pull/7.diff","patch_url":"https://github.com/kissiel/bt_helper/pull/7.patch"},"body":"Add a try-except to the device connect action, to catch errors if it's not well-paired.\r\n\r\nThis closes #6. "},"comment":{"url":"https://api.github.com/repos/kissiel/bt_helper/issues/comments/200540396","html_url":"https://github.com/kissiel/bt_helper/pull/7#issuecomment-200540396","issue_url":"https://api.github.com/repos/kissiel/bt_helper/issues/7","id":200540396,"user":{"login":"kissiel","id":4342563,"avatar_url":"https://avatars.githubusercontent.com/u/4342563?v=3","gravatar_id":"","url":"https://api.github.com/users/kissiel","html_url":"https://github.com/kissiel","followers_url":"https://api.github.com/users/kissiel/followers","following_url":"https://api.github.com/users/kissiel/following{/other_user}","gists_url":"https://api.github.com/users/kissiel/gists{/gist_id}","starred_url":"https://api.github.com/users/kissiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kissiel/subscriptions","organizations_url":"https://api.github.com/users/kissiel/orgs","repos_url":"https://api.github.com/users/kissiel/repos","events_url":"https://api.github.com/users/kissiel/events{/privacy}","received_events_url":"https://api.github.com/users/kissiel/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T20:56:01Z","updated_at":"2016-03-23T20:56:01Z","body":"The way I understand this PR is:\r\nIf .Connect() fails, just rerun pair and connect.\r\nIf we want a retry mechanic for that I think we should have a number of retries as a parameter with a sane default value."}}