{"action":"created","comment":{"url":"https://api.github.com/repos/sunlightlabs/billy/pulls/comments/28997268","id":28997268,"diff_hunk":"@@ -305,12 +305,16 @@ def merge_legislators(leg1, leg2):\n         leg1[key] = leg2[key]\n \n     # XXX: Set updated_at\n+\n+    if len(leg2[roles]) == 0:\n+        raise AssertionError(\"The new legislator has no roles. \"\\\n+            \"This merge should be done by hand.\")\n     if leg1[roles] != leg2[roles]:\n         # OK. Let's dump the current roles into the old roles.\n         # WARNING: This code *WILL* drop current ctty appointments.\n         #  What this means:\n         #      In the case where someone goes from chamber L->U, and is on\n-        #      joint-ctty A, moves to U, we will *LOOSE* joint-ctty from\n+        #      joint-ctty A, moves to U, we will *LOSE* joint-ctty from","path":"billy/importers/utils.py","position":14,"original_position":14,"commit_id":"eb5cc1ef0aaad6c783c9db748649aa9868e13bdf","original_commit_id":"eb5cc1ef0aaad6c783c9db748649aa9868e13bdf","user":{"login":"paultag","id":132447,"avatar_url":"https://avatars.githubusercontent.com/u/132447?v=3","gravatar_id":"","url":"https://api.github.com/users/paultag","html_url":"https://github.com/paultag","followers_url":"https://api.github.com/users/paultag/followers","following_url":"https://api.github.com/users/paultag/following{/other_user}","gists_url":"https://api.github.com/users/paultag/gists{/gist_id}","starred_url":"https://api.github.com/users/paultag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paultag/subscriptions","organizations_url":"https://api.github.com/users/paultag/orgs","repos_url":"https://api.github.com/users/paultag/repos","events_url":"https://api.github.com/users/paultag/events{/privacy}","received_events_url":"https://api.github.com/users/paultag/received_events","type":"User","site_admin":false},"body":"hah, oh @paultag ","created_at":"2015-04-23T19:56:53Z","updated_at":"2015-04-23T19:56:53Z","html_url":"https://github.com/sunlightlabs/billy/pull/256#discussion_r28997268","pull_request_url":"https://api.github.com/repos/sunlightlabs/billy/pulls/256","_links":{"self":{"href":"https://api.github.com/repos/sunlightlabs/billy/pulls/comments/28997268"},"html":{"href":"https://github.com/sunlightlabs/billy/pull/256#discussion_r28997268"},"pull_request":{"href":"https://api.github.com/repos/sunlightlabs/billy/pulls/256"}}},"pull_request":{"url":"https://api.github.com/repos/sunlightlabs/billy/pulls/256","id":33989713,"html_url":"https://github.com/sunlightlabs/billy/pull/256","diff_url":"https://github.com/sunlightlabs/billy/pull/256.diff","patch_url":"https://github.com/sunlightlabs/billy/pull/256.patch","issue_url":"https://api.github.com/repos/sunlightlabs/billy/issues/256","number":256,"state":"open","locked":false,"title":"throw a useful error if legislators un-mom-able","user":{"login":"rshorey","id":901091,"avatar_url":"https://avatars.githubusercontent.com/u/901091?v=3","gravatar_id":"","url":"https://api.github.com/users/rshorey","html_url":"https://github.com/rshorey","followers_url":"https://api.github.com/users/rshorey/followers","following_url":"https://api.github.com/users/rshorey/following{/other_user}","gists_url":"https://api.github.com/users/rshorey/gists{/gist_id}","starred_url":"https://api.github.com/users/rshorey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rshorey/subscriptions","organizations_url":"https://api.github.com/users/rshorey/orgs","repos_url":"https://api.github.com/users/rshorey/repos","events_url":"https://api.github.com/users/rshorey/events{/privacy}","received_events_url":"https://api.github.com/users/rshorey/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-23T19:46:45Z","updated_at":"2015-04-23T19:56:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ccaaf744b590296c2ce73ed3ac608b000ee9f06","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sunlightlabs/billy/pulls/256/commits","review_comments_url":"https://api.github.com/repos/sunlightlabs/billy/pulls/256/comments","review_comment_url":"https://api.github.com/repos/sunlightlabs/billy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sunlightlabs/billy/issues/256/comments","statuses_url":"https://api.github.com/repos/sunlightlabs/billy/statuses/eb5cc1ef0aaad6c783c9db748649aa9868e13bdf","head":{"label":"rshorey:fix-mom","ref":"fix-mom","sha":"eb5cc1ef0aaad6c783c9db748649aa9868e13bdf","user":{"login":"rshorey","id":901091,"avatar_url":"https://avatars.githubusercontent.com/u/901091?v=3","gravatar_id":"","url":"https://api.github.com/users/rshorey","html_url":"https://github.com/rshorey","followers_url":"https://api.github.com/users/rshorey/followers","following_url":"https://api.github.com/users/rshorey/following{/other_user}","gists_url":"https://api.github.com/users/rshorey/gists{/gist_id}","starred_url":"https://api.github.com/users/rshorey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rshorey/subscriptions","organizations_url":"https://api.github.com/users/rshorey/orgs","repos_url":"https://api.github.com/users/rshorey/repos","events_url":"https://api.github.com/users/rshorey/events{/privacy}","received_events_url":"https://api.github.com/users/rshorey/received_events","type":"User","site_admin":false},"repo":{"id":34463101,"name":"billy","full_name":"rshorey/billy","owner":{"login":"rshorey","id":901091,"avatar_url":"https://avatars.githubusercontent.com/u/901091?v=3","gravatar_id":"","url":"https://api.github.com/users/rshorey","html_url":"https://github.com/rshorey","followers_url":"https://api.github.com/users/rshorey/followers","following_url":"https://api.github.com/users/rshorey/following{/other_user}","gists_url":"https://api.github.com/users/rshorey/gists{/gist_id}","starred_url":"https://api.github.com/users/rshorey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rshorey/subscriptions","organizations_url":"https://api.github.com/users/rshorey/orgs","repos_url":"https://api.github.com/users/rshorey/repos","events_url":"https://api.github.com/users/rshorey/events{/privacy}","received_events_url":"https://api.github.com/users/rshorey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rshorey/billy","description":"scraping, storing, and sharing legislative information","fork":true,"url":"https://api.github.com/repos/rshorey/billy","forks_url":"https://api.github.com/repos/rshorey/billy/forks","keys_url":"https://api.github.com/repos/rshorey/billy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rshorey/billy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rshorey/billy/teams","hooks_url":"https://api.github.com/repos/rshorey/billy/hooks","issue_events_url":"https://api.github.com/repos/rshorey/billy/issues/events{/number}","events_url":"https://api.github.com/repos/rshorey/billy/events","assignees_url":"https://api.github.com/repos/rshorey/billy/assignees{/user}","branches_url":"https://api.github.com/repos/rshorey/billy/branches{/branch}","tags_url":"https://api.github.com/repos/rshorey/billy/tags","blobs_url":"https://api.github.com/repos/rshorey/billy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rshorey/billy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rshorey/billy/git/refs{/sha}","trees_url":"https://api.github.com/repos/rshorey/billy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rshorey/billy/statuses/{sha}","languages_url":"https://api.github.com/repos/rshorey/billy/languages","stargazers_url":"https://api.github.com/repos/rshorey/billy/stargazers","contributors_url":"https://api.github.com/repos/rshorey/billy/contributors","subscribers_url":"https://api.github.com/repos/rshorey/billy/subscribers","subscription_url":"https://api.github.com/repos/rshorey/billy/subscription","commits_url":"https://api.github.com/repos/rshorey/billy/commits{/sha}","git_commits_url":"https://api.github.com/repos/rshorey/billy/git/commits{/sha}","comments_url":"https://api.github.com/repos/rshorey/billy/comments{/number}","issue_comment_url":"https://api.github.com/repos/rshorey/billy/issues/comments{/number}","contents_url":"https://api.github.com/repos/rshorey/billy/contents/{+path}","compare_url":"https://api.github.com/repos/rshorey/billy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rshorey/billy/merges","archive_url":"https://api.github.com/repos/rshorey/billy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rshorey/billy/downloads","issues_url":"https://api.github.com/repos/rshorey/billy/issues{/number}","pulls_url":"https://api.github.com/repos/rshorey/billy/pulls{/number}","milestones_url":"https://api.github.com/repos/rshorey/billy/milestones{/number}","notifications_url":"https://api.github.com/repos/rshorey/billy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rshorey/billy/labels{/name}","releases_url":"https://api.github.com/repos/rshorey/billy/releases{/id}","created_at":"2015-04-23T14:59:46Z","updated_at":"2015-04-23T14:59:47Z","pushed_at":"2015-04-23T19:41:40Z","git_url":"git://github.com/rshorey/billy.git","ssh_url":"git@github.com:rshorey/billy.git","clone_url":"https://github.com/rshorey/billy.git","svn_url":"https://github.com/rshorey/billy","homepage":"","size":6088,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sunlightlabs:master","ref":"master","sha":"b5ab9503ef7c0aaa30dbbd3d0185cf83b385ce4b","user":{"login":"sunlightlabs","id":40420,"avatar_url":"https://avatars.githubusercontent.com/u/40420?v=3","gravatar_id":"","url":"https://api.github.com/users/sunlightlabs","html_url":"https://github.com/sunlightlabs","followers_url":"https://api.github.com/users/sunlightlabs/followers","following_url":"https://api.github.com/users/sunlightlabs/following{/other_user}","gists_url":"https://api.github.com/users/sunlightlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/sunlightlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunlightlabs/subscriptions","organizations_url":"https://api.github.com/users/sunlightlabs/orgs","repos_url":"https://api.github.com/users/sunlightlabs/repos","events_url":"https://api.github.com/users/sunlightlabs/events{/privacy}","received_events_url":"https://api.github.com/users/sunlightlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":2444432,"name":"billy","full_name":"sunlightlabs/billy","owner":{"login":"sunlightlabs","id":40420,"avatar_url":"https://avatars.githubusercontent.com/u/40420?v=3","gravatar_id":"","url":"https://api.github.com/users/sunlightlabs","html_url":"https://github.com/sunlightlabs","followers_url":"https://api.github.com/users/sunlightlabs/followers","following_url":"https://api.github.com/users/sunlightlabs/following{/other_user}","gists_url":"https://api.github.com/users/sunlightlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/sunlightlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunlightlabs/subscriptions","organizations_url":"https://api.github.com/users/sunlightlabs/orgs","repos_url":"https://api.github.com/users/sunlightlabs/repos","events_url":"https://api.github.com/users/sunlightlabs/events{/privacy}","received_events_url":"https://api.github.com/users/sunlightlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sunlightlabs/billy","description":"scraping, storing, and sharing legislative information","fork":false,"url":"https://api.github.com/repos/sunlightlabs/billy","forks_url":"https://api.github.com/repos/sunlightlabs/billy/forks","keys_url":"https://api.github.com/repos/sunlightlabs/billy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sunlightlabs/billy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sunlightlabs/billy/teams","hooks_url":"https://api.github.com/repos/sunlightlabs/billy/hooks","issue_events_url":"https://api.github.com/repos/sunlightlabs/billy/issues/events{/number}","events_url":"https://api.github.com/repos/sunlightlabs/billy/events","assignees_url":"https://api.github.com/repos/sunlightlabs/billy/assignees{/user}","branches_url":"https://api.github.com/repos/sunlightlabs/billy/branches{/branch}","tags_url":"https://api.github.com/repos/sunlightlabs/billy/tags","blobs_url":"https://api.github.com/repos/sunlightlabs/billy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sunlightlabs/billy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sunlightlabs/billy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sunlightlabs/billy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sunlightlabs/billy/statuses/{sha}","languages_url":"https://api.github.com/repos/sunlightlabs/billy/languages","stargazers_url":"https://api.github.com/repos/sunlightlabs/billy/stargazers","contributors_url":"https://api.github.com/repos/sunlightlabs/billy/contributors","subscribers_url":"https://api.github.com/repos/sunlightlabs/billy/subscribers","subscription_url":"https://api.github.com/repos/sunlightlabs/billy/subscription","commits_url":"https://api.github.com/repos/sunlightlabs/billy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sunlightlabs/billy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sunlightlabs/billy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sunlightlabs/billy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sunlightlabs/billy/contents/{+path}","compare_url":"https://api.github.com/repos/sunlightlabs/billy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sunlightlabs/billy/merges","archive_url":"https://api.github.com/repos/sunlightlabs/billy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sunlightlabs/billy/downloads","issues_url":"https://api.github.com/repos/sunlightlabs/billy/issues{/number}","pulls_url":"https://api.github.com/repos/sunlightlabs/billy/pulls{/number}","milestones_url":"https://api.github.com/repos/sunlightlabs/billy/milestones{/number}","notifications_url":"https://api.github.com/repos/sunlightlabs/billy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sunlightlabs/billy/labels{/name}","releases_url":"https://api.github.com/repos/sunlightlabs/billy/releases{/id}","created_at":"2011-09-23T14:29:55Z","updated_at":"2015-04-22T21:07:46Z","pushed_at":"2015-04-23T19:46:45Z","git_url":"git://github.com/sunlightlabs/billy.git","ssh_url":"git@github.com:sunlightlabs/billy.git","clone_url":"https://github.com/sunlightlabs/billy.git","svn_url":"https://github.com/sunlightlabs/billy","homepage":"","size":6088,"stargazers_count":42,"watchers_count":42,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":7,"forks":26,"open_issues":7,"watchers":42,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sunlightlabs/billy/pulls/256"},"html":{"href":"https://github.com/sunlightlabs/billy/pull/256"},"issue":{"href":"https://api.github.com/repos/sunlightlabs/billy/issues/256"},"comments":{"href":"https://api.github.com/repos/sunlightlabs/billy/issues/256/comments"},"review_comments":{"href":"https://api.github.com/repos/sunlightlabs/billy/pulls/256/comments"},"review_comment":{"href":"https://api.github.com/repos/sunlightlabs/billy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sunlightlabs/billy/pulls/256/commits"},"statuses":{"href":"https://api.github.com/repos/sunlightlabs/billy/statuses/eb5cc1ef0aaad6c783c9db748649aa9868e13bdf"}}}}