{"action":"created","issue":{"url":"https://api.github.com/repos/neo1691/scorer.py/issues/26","labels_url":"https://api.github.com/repos/neo1691/scorer.py/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/neo1691/scorer.py/issues/26/comments","events_url":"https://api.github.com/repos/neo1691/scorer.py/issues/26/events","html_url":"https://github.com/neo1691/scorer.py/pull/26","id":65549823,"number":26,"title":"Interrupt","user":{"login":"nirmalvp","id":10485277,"avatar_url":"https://avatars.githubusercontent.com/u/10485277?v=3","gravatar_id":"","url":"https://api.github.com/users/nirmalvp","html_url":"https://github.com/nirmalvp","followers_url":"https://api.github.com/users/nirmalvp/followers","following_url":"https://api.github.com/users/nirmalvp/following{/other_user}","gists_url":"https://api.github.com/users/nirmalvp/gists{/gist_id}","starred_url":"https://api.github.com/users/nirmalvp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirmalvp/subscriptions","organizations_url":"https://api.github.com/users/nirmalvp/orgs","repos_url":"https://api.github.com/users/nirmalvp/repos","events_url":"https://api.github.com/users/nirmalvp/events{/privacy}","received_events_url":"https://api.github.com/users/nirmalvp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-31T21:19:29Z","updated_at":"2015-04-01T04:52:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/neo1691/scorer.py/pulls/26","html_url":"https://github.com/neo1691/scorer.py/pull/26","diff_url":"https://github.com/neo1691/scorer.py/pull/26.diff","patch_url":"https://github.com/neo1691/scorer.py/pull/26.patch"},"body":"Updated app.py with more error checks and alternate handling of Interupts. Added a new file \"system.py\" which contains a fn() that will print a goodbye message and then exit the app\r\n\r\nChanges\r\n--------\r\n\r\n1. If No Live matches are available, notify the user and exit the app rather than giving him a selection menu\r\n2. Provided a quit option in selection menu\r\n3. User input is  now taken as raw_input . This fixes a type conversion error if user provides any non-digit\r\n4. Logging moved down after validation since matches[matchChoice-1] could lead to exception for unvalidated match choices.\r\n5. The infinite loop is applied only to the notify portion of the code. This ensures that the user selection screen is not provided to the user again unless he issues a keyboard interrupt."},"comment":{"url":"https://api.github.com/repos/neo1691/scorer.py/issues/comments/88349354","html_url":"https://github.com/neo1691/scorer.py/pull/26#issuecomment-88349354","issue_url":"https://api.github.com/repos/neo1691/scorer.py/issues/26","id":88349354,"user":{"login":"neo1691","id":1628340,"avatar_url":"https://avatars.githubusercontent.com/u/1628340?v=3","gravatar_id":"","url":"https://api.github.com/users/neo1691","html_url":"https://github.com/neo1691","followers_url":"https://api.github.com/users/neo1691/followers","following_url":"https://api.github.com/users/neo1691/following{/other_user}","gists_url":"https://api.github.com/users/neo1691/gists{/gist_id}","starred_url":"https://api.github.com/users/neo1691/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neo1691/subscriptions","organizations_url":"https://api.github.com/users/neo1691/orgs","repos_url":"https://api.github.com/users/neo1691/repos","events_url":"https://api.github.com/users/neo1691/events{/privacy}","received_events_url":"https://api.github.com/users/neo1691/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T04:52:39Z","updated_at":"2015-04-01T04:52:39Z","body":"Hi @nirmalvp . Thanks a lot for the pull requests. This really looks good. I'll do some testing both on python2 as well as python3 and see if the code is working properly. \r\n\r\nAs you can see, we are trying to write the script such that the script runs without any issues on both python2 as well as python3. Can you just confirm if the raw_input() function runs on python3? I am not sure, and I haven't really run the script with your PR. \r\n\r\nI will test it if I get time today, else I will have to test it from home. \r\n\r\nThanks again."}}