{"action":"created","comment":{"url":"https://api.github.com/repos/youtube/vitess/pulls/comments/26716518","id":26716518,"diff_hunk":"@@ -65,18 +38,32 @@ def handle_app_error(exc_args):\n   return dbexceptions.DatabaseError(exc_args)\n \n \n-@log_exception\n-def convert_exception(exc, *args):\n+def convert_exception(exc, *args, **kwargs):\n   new_args = exc.args + args\n+  if kwargs:\n+    new_args += tuple(kwargs.values())","path":"py/vtdb/vtgatev2.py","position":43,"original_position":43,"commit_id":"c60aa1593198c5a5fe16a5a21ca91f26a5784cf6","original_commit_id":"c60aa1593198c5a5fe16a5a21ca91f26a5784cf6","user":{"login":"aaijazi","id":2326899,"avatar_url":"https://avatars.githubusercontent.com/u/2326899?v=3","gravatar_id":"","url":"https://api.github.com/users/aaijazi","html_url":"https://github.com/aaijazi","followers_url":"https://api.github.com/users/aaijazi/followers","following_url":"https://api.github.com/users/aaijazi/following{/other_user}","gists_url":"https://api.github.com/users/aaijazi/gists{/gist_id}","starred_url":"https://api.github.com/users/aaijazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaijazi/subscriptions","organizations_url":"https://api.github.com/users/aaijazi/orgs","repos_url":"https://api.github.com/users/aaijazi/repos","events_url":"https://api.github.com/users/aaijazi/events{/privacy}","received_events_url":"https://api.github.com/users/aaijazi/received_events","type":"User","site_admin":false},"body":"nitpicky, but this could be kwargs.itervalues(), since you're making it a tuple anyways. It just needs to be iterated over.","created_at":"2015-03-18T23:03:15Z","updated_at":"2015-03-18T23:03:15Z","html_url":"https://github.com/youtube/vitess/pull/504#discussion_r26716518","pull_request_url":"https://api.github.com/repos/youtube/vitess/pulls/504","_links":{"self":{"href":"https://api.github.com/repos/youtube/vitess/pulls/comments/26716518"},"html":{"href":"https://github.com/youtube/vitess/pull/504#discussion_r26716518"},"pull_request":{"href":"https://api.github.com/repos/youtube/vitess/pulls/504"}}},"pull_request":{"url":"https://api.github.com/repos/youtube/vitess/pulls/504","id":31480893,"html_url":"https://github.com/youtube/vitess/pull/504","diff_url":"https://github.com/youtube/vitess/pull/504.diff","patch_url":"https://github.com/youtube/vitess/pull/504.patch","issue_url":"https://api.github.com/repos/youtube/vitess/issues/504","number":504,"state":"open","locked":false,"title":"Cleaned up vtgatev2_exception logging.","user":{"login":"shrutip","id":5050399,"avatar_url":"https://avatars.githubusercontent.com/u/5050399?v=3","gravatar_id":"","url":"https://api.github.com/users/shrutip","html_url":"https://github.com/shrutip","followers_url":"https://api.github.com/users/shrutip/followers","following_url":"https://api.github.com/users/shrutip/following{/other_user}","gists_url":"https://api.github.com/users/shrutip/gists{/gist_id}","starred_url":"https://api.github.com/users/shrutip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrutip/subscriptions","organizations_url":"https://api.github.com/users/shrutip/orgs","repos_url":"https://api.github.com/users/shrutip/repos","events_url":"https://api.github.com/users/shrutip/events{/privacy}","received_events_url":"https://api.github.com/users/shrutip/received_events","type":"User","site_admin":false},"body":"@henryanand @guoliang100 ","created_at":"2015-03-18T22:57:02Z","updated_at":"2015-03-18T23:03:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b15c65f124e6b56602220565dc91ee6f81f7489f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/youtube/vitess/pulls/504/commits","review_comments_url":"https://api.github.com/repos/youtube/vitess/pulls/504/comments","review_comment_url":"https://api.github.com/repos/youtube/vitess/pulls/comments{/number}","comments_url":"https://api.github.com/repos/youtube/vitess/issues/504/comments","statuses_url":"https://api.github.com/repos/youtube/vitess/statuses/c60aa1593198c5a5fe16a5a21ca91f26a5784cf6","head":{"label":"youtube:vtgate_exc_cleanup","ref":"vtgate_exc_cleanup","sha":"c60aa1593198c5a5fe16a5a21ca91f26a5784cf6","user":{"login":"youtube","id":4052902,"avatar_url":"https://avatars.githubusercontent.com/u/4052902?v=3","gravatar_id":"","url":"https://api.github.com/users/youtube","html_url":"https://github.com/youtube","followers_url":"https://api.github.com/users/youtube/followers","following_url":"https://api.github.com/users/youtube/following{/other_user}","gists_url":"https://api.github.com/users/youtube/gists{/gist_id}","starred_url":"https://api.github.com/users/youtube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youtube/subscriptions","organizations_url":"https://api.github.com/users/youtube/orgs","repos_url":"https://api.github.com/users/youtube/repos","events_url":"https://api.github.com/users/youtube/events{/privacy}","received_events_url":"https://api.github.com/users/youtube/received_events","type":"Organization","site_admin":false},"repo":{"id":11008207,"name":"vitess","full_name":"youtube/vitess","owner":{"login":"youtube","id":4052902,"avatar_url":"https://avatars.githubusercontent.com/u/4052902?v=3","gravatar_id":"","url":"https://api.github.com/users/youtube","html_url":"https://github.com/youtube","followers_url":"https://api.github.com/users/youtube/followers","following_url":"https://api.github.com/users/youtube/following{/other_user}","gists_url":"https://api.github.com/users/youtube/gists{/gist_id}","starred_url":"https://api.github.com/users/youtube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youtube/subscriptions","organizations_url":"https://api.github.com/users/youtube/orgs","repos_url":"https://api.github.com/users/youtube/repos","events_url":"https://api.github.com/users/youtube/events{/privacy}","received_events_url":"https://api.github.com/users/youtube/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/youtube/vitess","description":"vitess provides servers and tools which facilitate scaling of MySQL databases for large scale web services.","fork":false,"url":"https://api.github.com/repos/youtube/vitess","forks_url":"https://api.github.com/repos/youtube/vitess/forks","keys_url":"https://api.github.com/repos/youtube/vitess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/youtube/vitess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/youtube/vitess/teams","hooks_url":"https://api.github.com/repos/youtube/vitess/hooks","issue_events_url":"https://api.github.com/repos/youtube/vitess/issues/events{/number}","events_url":"https://api.github.com/repos/youtube/vitess/events","assignees_url":"https://api.github.com/repos/youtube/vitess/assignees{/user}","branches_url":"https://api.github.com/repos/youtube/vitess/branches{/branch}","tags_url":"https://api.github.com/repos/youtube/vitess/tags","blobs_url":"https://api.github.com/repos/youtube/vitess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/youtube/vitess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/youtube/vitess/git/refs{/sha}","trees_url":"https://api.github.com/repos/youtube/vitess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/youtube/vitess/statuses/{sha}","languages_url":"https://api.github.com/repos/youtube/vitess/languages","stargazers_url":"https://api.github.com/repos/youtube/vitess/stargazers","contributors_url":"https://api.github.com/repos/youtube/vitess/contributors","subscribers_url":"https://api.github.com/repos/youtube/vitess/subscribers","subscription_url":"https://api.github.com/repos/youtube/vitess/subscription","commits_url":"https://api.github.com/repos/youtube/vitess/commits{/sha}","git_commits_url":"https://api.github.com/repos/youtube/vitess/git/commits{/sha}","comments_url":"https://api.github.com/repos/youtube/vitess/comments{/number}","issue_comment_url":"https://api.github.com/repos/youtube/vitess/issues/comments{/number}","contents_url":"https://api.github.com/repos/youtube/vitess/contents/{+path}","compare_url":"https://api.github.com/repos/youtube/vitess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/youtube/vitess/merges","archive_url":"https://api.github.com/repos/youtube/vitess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/youtube/vitess/downloads","issues_url":"https://api.github.com/repos/youtube/vitess/issues{/number}","pulls_url":"https://api.github.com/repos/youtube/vitess/pulls{/number}","milestones_url":"https://api.github.com/repos/youtube/vitess/milestones{/number}","notifications_url":"https://api.github.com/repos/youtube/vitess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/youtube/vitess/labels{/name}","releases_url":"https://api.github.com/repos/youtube/vitess/releases{/id}","created_at":"2013-06-27T21:20:28Z","updated_at":"2015-03-18T17:42:51Z","pushed_at":"2015-03-18T22:56:27Z","git_url":"git://github.com/youtube/vitess.git","ssh_url":"git@github.com:youtube/vitess.git","clone_url":"https://github.com/youtube/vitess.git","svn_url":"https://github.com/youtube/vitess","homepage":null,"size":63898,"stargazers_count":2191,"watchers_count":2191,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":266,"mirror_url":null,"open_issues_count":16,"forks":266,"open_issues":16,"watchers":2191,"default_branch":"master"}},"base":{"label":"youtube:master","ref":"master","sha":"e37acf867ffa117a308090f3d93cb525dc814a9d","user":{"login":"youtube","id":4052902,"avatar_url":"https://avatars.githubusercontent.com/u/4052902?v=3","gravatar_id":"","url":"https://api.github.com/users/youtube","html_url":"https://github.com/youtube","followers_url":"https://api.github.com/users/youtube/followers","following_url":"https://api.github.com/users/youtube/following{/other_user}","gists_url":"https://api.github.com/users/youtube/gists{/gist_id}","starred_url":"https://api.github.com/users/youtube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youtube/subscriptions","organizations_url":"https://api.github.com/users/youtube/orgs","repos_url":"https://api.github.com/users/youtube/repos","events_url":"https://api.github.com/users/youtube/events{/privacy}","received_events_url":"https://api.github.com/users/youtube/received_events","type":"Organization","site_admin":false},"repo":{"id":11008207,"name":"vitess","full_name":"youtube/vitess","owner":{"login":"youtube","id":4052902,"avatar_url":"https://avatars.githubusercontent.com/u/4052902?v=3","gravatar_id":"","url":"https://api.github.com/users/youtube","html_url":"https://github.com/youtube","followers_url":"https://api.github.com/users/youtube/followers","following_url":"https://api.github.com/users/youtube/following{/other_user}","gists_url":"https://api.github.com/users/youtube/gists{/gist_id}","starred_url":"https://api.github.com/users/youtube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youtube/subscriptions","organizations_url":"https://api.github.com/users/youtube/orgs","repos_url":"https://api.github.com/users/youtube/repos","events_url":"https://api.github.com/users/youtube/events{/privacy}","received_events_url":"https://api.github.com/users/youtube/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/youtube/vitess","description":"vitess provides servers and tools which facilitate scaling of MySQL databases for large scale web services.","fork":false,"url":"https://api.github.com/repos/youtube/vitess","forks_url":"https://api.github.com/repos/youtube/vitess/forks","keys_url":"https://api.github.com/repos/youtube/vitess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/youtube/vitess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/youtube/vitess/teams","hooks_url":"https://api.github.com/repos/youtube/vitess/hooks","issue_events_url":"https://api.github.com/repos/youtube/vitess/issues/events{/number}","events_url":"https://api.github.com/repos/youtube/vitess/events","assignees_url":"https://api.github.com/repos/youtube/vitess/assignees{/user}","branches_url":"https://api.github.com/repos/youtube/vitess/branches{/branch}","tags_url":"https://api.github.com/repos/youtube/vitess/tags","blobs_url":"https://api.github.com/repos/youtube/vitess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/youtube/vitess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/youtube/vitess/git/refs{/sha}","trees_url":"https://api.github.com/repos/youtube/vitess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/youtube/vitess/statuses/{sha}","languages_url":"https://api.github.com/repos/youtube/vitess/languages","stargazers_url":"https://api.github.com/repos/youtube/vitess/stargazers","contributors_url":"https://api.github.com/repos/youtube/vitess/contributors","subscribers_url":"https://api.github.com/repos/youtube/vitess/subscribers","subscription_url":"https://api.github.com/repos/youtube/vitess/subscription","commits_url":"https://api.github.com/repos/youtube/vitess/commits{/sha}","git_commits_url":"https://api.github.com/repos/youtube/vitess/git/commits{/sha}","comments_url":"https://api.github.com/repos/youtube/vitess/comments{/number}","issue_comment_url":"https://api.github.com/repos/youtube/vitess/issues/comments{/number}","contents_url":"https://api.github.com/repos/youtube/vitess/contents/{+path}","compare_url":"https://api.github.com/repos/youtube/vitess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/youtube/vitess/merges","archive_url":"https://api.github.com/repos/youtube/vitess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/youtube/vitess/downloads","issues_url":"https://api.github.com/repos/youtube/vitess/issues{/number}","pulls_url":"https://api.github.com/repos/youtube/vitess/pulls{/number}","milestones_url":"https://api.github.com/repos/youtube/vitess/milestones{/number}","notifications_url":"https://api.github.com/repos/youtube/vitess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/youtube/vitess/labels{/name}","releases_url":"https://api.github.com/repos/youtube/vitess/releases{/id}","created_at":"2013-06-27T21:20:28Z","updated_at":"2015-03-18T17:42:51Z","pushed_at":"2015-03-18T22:56:27Z","git_url":"git://github.com/youtube/vitess.git","ssh_url":"git@github.com:youtube/vitess.git","clone_url":"https://github.com/youtube/vitess.git","svn_url":"https://github.com/youtube/vitess","homepage":null,"size":63898,"stargazers_count":2191,"watchers_count":2191,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":266,"mirror_url":null,"open_issues_count":16,"forks":266,"open_issues":16,"watchers":2191,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/youtube/vitess/pulls/504"},"html":{"href":"https://github.com/youtube/vitess/pull/504"},"issue":{"href":"https://api.github.com/repos/youtube/vitess/issues/504"},"comments":{"href":"https://api.github.com/repos/youtube/vitess/issues/504/comments"},"review_comments":{"href":"https://api.github.com/repos/youtube/vitess/pulls/504/comments"},"review_comment":{"href":"https://api.github.com/repos/youtube/vitess/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/youtube/vitess/pulls/504/commits"},"statuses":{"href":"https://api.github.com/repos/youtube/vitess/statuses/c60aa1593198c5a5fe16a5a21ca91f26a5784cf6"}}}}