{"action":"created","comment":{"url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/pulls/comments/27970308","id":27970308,"diff_hunk":"@@ -148,13 +148,18 @@ def answer_mapper(self, answer_status):\n         \"\"\"\n         Create a JSON-dumpable object with readable key names from a list of student answers.\n         \"\"\"\n-        return [\n-            {\n-                'number': self.get_question_number(answer[0]),\n-                'id': answer[0],\n-                'details': answer[1],\n-            } for answer in self.student_results if answer[1]['status'] == answer_status\n-        ]\n+        answer_map = []\n+        for answer in self.student_results:\n+            if answer[1]['status'] == answer_status:\n+                try:\n+                    answer_map.append({\n+                        'number': self.get_question_number(answer[0]),\n+                        'id': answer[0],\n+                        'details': answer[1],\n+                    })\n+                except ValueError:\n+                    pass","path":"mentoring/mentoring.py","position":21,"original_position":21,"commit_id":"b9ca911a87043bd528ac9aff67f6e59e554e9965","original_commit_id":"b9ca911a87043bd528ac9aff67f6e59e554e9965","user":{"login":"antoviaque","id":514483,"avatar_url":"https://avatars.githubusercontent.com/u/514483?v=3","gravatar_id":"","url":"https://api.github.com/users/antoviaque","html_url":"https://github.com/antoviaque","followers_url":"https://api.github.com/users/antoviaque/followers","following_url":"https://api.github.com/users/antoviaque/following{/other_user}","gists_url":"https://api.github.com/users/antoviaque/gists{/gist_id}","starred_url":"https://api.github.com/users/antoviaque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoviaque/subscriptions","organizations_url":"https://api.github.com/users/antoviaque/orgs","repos_url":"https://api.github.com/users/antoviaque/repos","events_url":"https://api.github.com/users/antoviaque/events{/privacy}","received_events_url":"https://api.github.com/users/antoviaque/received_events","type":"User","site_admin":false},"body":"Instead of skipping the value when it's invalid, which might lead to other subtle bugs due to incomplete data, when this happens can we reset the `student_results`, after logging the previous value for reference?","created_at":"2015-04-08T13:45:38Z","updated_at":"2015-04-08T13:45:38Z","html_url":"https://github.com/edx-solutions/xblock-mentoring/pull/109#discussion_r27970308","pull_request_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/pulls/109","_links":{"self":{"href":"https://api.github.com/repos/edx-solutions/xblock-mentoring/pulls/comments/27970308"},"html":{"href":"https://github.com/edx-solutions/xblock-mentoring/pull/109#discussion_r27970308"},"pull_request":{"href":"https://api.github.com/repos/edx-solutions/xblock-mentoring/pulls/109"}}},"pull_request":{"url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/pulls/109","id":32859355,"html_url":"https://github.com/edx-solutions/xblock-mentoring/pull/109","diff_url":"https://github.com/edx-solutions/xblock-mentoring/pull/109.diff","patch_url":"https://github.com/edx-solutions/xblock-mentoring/pull/109.patch","issue_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/issues/109","number":109,"state":"open","locked":false,"title":"Fix crashing bug if answer is no longer associated with any question","user":{"login":"Kelketek","id":1099483,"avatar_url":"https://avatars.githubusercontent.com/u/1099483?v=3","gravatar_id":"","url":"https://api.github.com/users/Kelketek","html_url":"https://github.com/Kelketek","followers_url":"https://api.github.com/users/Kelketek/followers","following_url":"https://api.github.com/users/Kelketek/following{/other_user}","gists_url":"https://api.github.com/users/Kelketek/gists{/gist_id}","starred_url":"https://api.github.com/users/Kelketek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kelketek/subscriptions","organizations_url":"https://api.github.com/users/Kelketek/orgs","repos_url":"https://api.github.com/users/Kelketek/repos","events_url":"https://api.github.com/users/Kelketek/events{/privacy}","received_events_url":"https://api.github.com/users/Kelketek/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-08T13:26:17Z","updated_at":"2015-04-08T13:45:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a09ff2b71570e825954629b2b67f7fd3ca3b10d5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/pulls/109/commits","review_comments_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/pulls/109/comments","review_comment_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/issues/109/comments","statuses_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/statuses/b9ca911a87043bd528ac9aff67f6e59e554e9965","head":{"label":"open-craft:kelketek/answer-hotfix","ref":"kelketek/answer-hotfix","sha":"b9ca911a87043bd528ac9aff67f6e59e554e9965","user":{"login":"open-craft","id":7414786,"avatar_url":"https://avatars.githubusercontent.com/u/7414786?v=3","gravatar_id":"","url":"https://api.github.com/users/open-craft","html_url":"https://github.com/open-craft","followers_url":"https://api.github.com/users/open-craft/followers","following_url":"https://api.github.com/users/open-craft/following{/other_user}","gists_url":"https://api.github.com/users/open-craft/gists{/gist_id}","starred_url":"https://api.github.com/users/open-craft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-craft/subscriptions","organizations_url":"https://api.github.com/users/open-craft/orgs","repos_url":"https://api.github.com/users/open-craft/repos","events_url":"https://api.github.com/users/open-craft/events{/privacy}","received_events_url":"https://api.github.com/users/open-craft/received_events","type":"Organization","site_admin":false},"repo":{"id":29684458,"name":"xblock-mentoring","full_name":"open-craft/xblock-mentoring","owner":{"login":"open-craft","id":7414786,"avatar_url":"https://avatars.githubusercontent.com/u/7414786?v=3","gravatar_id":"","url":"https://api.github.com/users/open-craft","html_url":"https://github.com/open-craft","followers_url":"https://api.github.com/users/open-craft/followers","following_url":"https://api.github.com/users/open-craft/following{/other_user}","gists_url":"https://api.github.com/users/open-craft/gists{/gist_id}","starred_url":"https://api.github.com/users/open-craft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-craft/subscriptions","organizations_url":"https://api.github.com/users/open-craft/orgs","repos_url":"https://api.github.com/users/open-craft/repos","events_url":"https://api.github.com/users/open-craft/events{/privacy}","received_events_url":"https://api.github.com/users/open-craft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-craft/xblock-mentoring","description":"Mentoring XBlock for edX","fork":true,"url":"https://api.github.com/repos/open-craft/xblock-mentoring","forks_url":"https://api.github.com/repos/open-craft/xblock-mentoring/forks","keys_url":"https://api.github.com/repos/open-craft/xblock-mentoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-craft/xblock-mentoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-craft/xblock-mentoring/teams","hooks_url":"https://api.github.com/repos/open-craft/xblock-mentoring/hooks","issue_events_url":"https://api.github.com/repos/open-craft/xblock-mentoring/issues/events{/number}","events_url":"https://api.github.com/repos/open-craft/xblock-mentoring/events","assignees_url":"https://api.github.com/repos/open-craft/xblock-mentoring/assignees{/user}","branches_url":"https://api.github.com/repos/open-craft/xblock-mentoring/branches{/branch}","tags_url":"https://api.github.com/repos/open-craft/xblock-mentoring/tags","blobs_url":"https://api.github.com/repos/open-craft/xblock-mentoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-craft/xblock-mentoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-craft/xblock-mentoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-craft/xblock-mentoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-craft/xblock-mentoring/statuses/{sha}","languages_url":"https://api.github.com/repos/open-craft/xblock-mentoring/languages","stargazers_url":"https://api.github.com/repos/open-craft/xblock-mentoring/stargazers","contributors_url":"https://api.github.com/repos/open-craft/xblock-mentoring/contributors","subscribers_url":"https://api.github.com/repos/open-craft/xblock-mentoring/subscribers","subscription_url":"https://api.github.com/repos/open-craft/xblock-mentoring/subscription","commits_url":"https://api.github.com/repos/open-craft/xblock-mentoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-craft/xblock-mentoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-craft/xblock-mentoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-craft/xblock-mentoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-craft/xblock-mentoring/contents/{+path}","compare_url":"https://api.github.com/repos/open-craft/xblock-mentoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-craft/xblock-mentoring/merges","archive_url":"https://api.github.com/repos/open-craft/xblock-mentoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-craft/xblock-mentoring/downloads","issues_url":"https://api.github.com/repos/open-craft/xblock-mentoring/issues{/number}","pulls_url":"https://api.github.com/repos/open-craft/xblock-mentoring/pulls{/number}","milestones_url":"https://api.github.com/repos/open-craft/xblock-mentoring/milestones{/number}","notifications_url":"https://api.github.com/repos/open-craft/xblock-mentoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-craft/xblock-mentoring/labels{/name}","releases_url":"https://api.github.com/repos/open-craft/xblock-mentoring/releases{/id}","created_at":"2015-01-22T15:11:16Z","updated_at":"2015-04-07T12:26:03Z","pushed_at":"2015-04-08T13:25:45Z","git_url":"git://github.com/open-craft/xblock-mentoring.git","ssh_url":"git@github.com:open-craft/xblock-mentoring.git","clone_url":"https://github.com/open-craft/xblock-mentoring.git","svn_url":"https://github.com/open-craft/xblock-mentoring","homepage":null,"size":4177,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"edx-solutions:master","ref":"master","sha":"89c8ac1d1ab3635167fca69e307b33480c01f462","user":{"login":"edx-solutions","id":6585054,"avatar_url":"https://avatars.githubusercontent.com/u/6585054?v=3","gravatar_id":"","url":"https://api.github.com/users/edx-solutions","html_url":"https://github.com/edx-solutions","followers_url":"https://api.github.com/users/edx-solutions/followers","following_url":"https://api.github.com/users/edx-solutions/following{/other_user}","gists_url":"https://api.github.com/users/edx-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/edx-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx-solutions/subscriptions","organizations_url":"https://api.github.com/users/edx-solutions/orgs","repos_url":"https://api.github.com/users/edx-solutions/repos","events_url":"https://api.github.com/users/edx-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/edx-solutions/received_events","type":"Organization","site_admin":false},"repo":{"id":17512682,"name":"xblock-mentoring","full_name":"edx-solutions/xblock-mentoring","owner":{"login":"edx-solutions","id":6585054,"avatar_url":"https://avatars.githubusercontent.com/u/6585054?v=3","gravatar_id":"","url":"https://api.github.com/users/edx-solutions","html_url":"https://github.com/edx-solutions","followers_url":"https://api.github.com/users/edx-solutions/followers","following_url":"https://api.github.com/users/edx-solutions/following{/other_user}","gists_url":"https://api.github.com/users/edx-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/edx-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx-solutions/subscriptions","organizations_url":"https://api.github.com/users/edx-solutions/orgs","repos_url":"https://api.github.com/users/edx-solutions/repos","events_url":"https://api.github.com/users/edx-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/edx-solutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx-solutions/xblock-mentoring","description":"Mentoring XBlock for edX","fork":true,"url":"https://api.github.com/repos/edx-solutions/xblock-mentoring","forks_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/forks","keys_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/teams","hooks_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/hooks","issue_events_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/issues/events{/number}","events_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/events","assignees_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/assignees{/user}","branches_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/branches{/branch}","tags_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/tags","blobs_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/statuses/{sha}","languages_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/languages","stargazers_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/stargazers","contributors_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/contributors","subscribers_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/subscribers","subscription_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/subscription","commits_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/contents/{+path}","compare_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/merges","archive_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/downloads","issues_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/issues{/number}","pulls_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/pulls{/number}","milestones_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/milestones{/number}","notifications_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/labels{/name}","releases_url":"https://api.github.com/repos/edx-solutions/xblock-mentoring/releases{/id}","created_at":"2014-03-07T12:00:46Z","updated_at":"2015-04-03T19:30:50Z","pushed_at":"2015-04-08T13:26:17Z","git_url":"git://github.com/edx-solutions/xblock-mentoring.git","ssh_url":"git@github.com:edx-solutions/xblock-mentoring.git","clone_url":"https://github.com/edx-solutions/xblock-mentoring.git","svn_url":"https://github.com/edx-solutions/xblock-mentoring","homepage":null,"size":2555,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx-solutions/xblock-mentoring/pulls/109"},"html":{"href":"https://github.com/edx-solutions/xblock-mentoring/pull/109"},"issue":{"href":"https://api.github.com/repos/edx-solutions/xblock-mentoring/issues/109"},"comments":{"href":"https://api.github.com/repos/edx-solutions/xblock-mentoring/issues/109/comments"},"review_comments":{"href":"https://api.github.com/repos/edx-solutions/xblock-mentoring/pulls/109/comments"},"review_comment":{"href":"https://api.github.com/repos/edx-solutions/xblock-mentoring/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx-solutions/xblock-mentoring/pulls/109/commits"},"statuses":{"href":"https://api.github.com/repos/edx-solutions/xblock-mentoring/statuses/b9ca911a87043bd528ac9aff67f6e59e554e9965"}}}}