{"action":"created","comment":{"url":"https://api.github.com/repos/ActivityWatch/aw-core/pulls/comments/178606827","pull_request_review_id":108689645,"id":178606827,"diff_hunk":"@@ -5,15 +5,12 @@\n from aw_core.models import Event\n from aw_datastore import Datastore\n \n+from .query2_error import QueryParseException, QueryInterpretException\n from .query2_functions import query2_functions\n \n logger = logging.getLogger(__name__)\n \n \n-class QueryException(Exception):","path":"aw_analysis/query2.py","position":10,"original_position":10,"commit_id":"1135292347bf451771d0b5359f935f56ebf22e7d","original_commit_id":"f5aac123ad884f1167984b9bcd2d48a8f6febfff","user":{"login":"johan-bjareholt","id":1398500,"avatar_url":"https://avatars1.githubusercontent.com/u/1398500?v=4","gravatar_id":"","url":"https://api.github.com/users/johan-bjareholt","html_url":"https://github.com/johan-bjareholt","followers_url":"https://api.github.com/users/johan-bjareholt/followers","following_url":"https://api.github.com/users/johan-bjareholt/following{/other_user}","gists_url":"https://api.github.com/users/johan-bjareholt/gists{/gist_id}","starred_url":"https://api.github.com/users/johan-bjareholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johan-bjareholt/subscriptions","organizations_url":"https://api.github.com/users/johan-bjareholt/orgs","repos_url":"https://api.github.com/users/johan-bjareholt/repos","events_url":"https://api.github.com/users/johan-bjareholt/events{/privacy}","received_events_url":"https://api.github.com/users/johan-bjareholt/received_events","type":"User","site_admin":false},"body":"Fixed, I moved it to query2_error.py so by simply importing it in this file fixed it.","created_at":"2018-04-02T18:06:01Z","updated_at":"2018-04-02T18:06:01Z","html_url":"https://github.com/ActivityWatch/aw-core/pull/53#discussion_r178606827","pull_request_url":"https://api.github.com/repos/ActivityWatch/aw-core/pulls/53","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ActivityWatch/aw-core/pulls/comments/178606827"},"html":{"href":"https://github.com/ActivityWatch/aw-core/pull/53#discussion_r178606827"},"pull_request":{"href":"https://api.github.com/repos/ActivityWatch/aw-core/pulls/53"}},"in_reply_to_id":178576661},"pull_request":{"url":"https://api.github.com/repos/ActivityWatch/aw-core/pulls/53","id":178868163,"html_url":"https://github.com/ActivityWatch/aw-core/pull/53","diff_url":"https://github.com/ActivityWatch/aw-core/pull/53.diff","patch_url":"https://github.com/ActivityWatch/aw-core/pull/53.patch","issue_url":"https://api.github.com/repos/ActivityWatch/aw-core/issues/53","number":53,"state":"open","locked":false,"title":"query2: better error handling","user":{"login":"johan-bjareholt","id":1398500,"avatar_url":"https://avatars1.githubusercontent.com/u/1398500?v=4","gravatar_id":"","url":"https://api.github.com/users/johan-bjareholt","html_url":"https://github.com/johan-bjareholt","followers_url":"https://api.github.com/users/johan-bjareholt/followers","following_url":"https://api.github.com/users/johan-bjareholt/following{/other_user}","gists_url":"https://api.github.com/users/johan-bjareholt/gists{/gist_id}","starred_url":"https://api.github.com/users/johan-bjareholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johan-bjareholt/subscriptions","organizations_url":"https://api.github.com/users/johan-bjareholt/orgs","repos_url":"https://api.github.com/users/johan-bjareholt/repos","events_url":"https://api.github.com/users/johan-bjareholt/events{/privacy}","received_events_url":"https://api.github.com/users/johan-bjareholt/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-02T15:58:56Z","updated_at":"2018-04-02T18:06:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b60f1416de53ac74d96427338dde14325a0bc1e6","assignee":{"login":"johan-bjareholt","id":1398500,"avatar_url":"https://avatars1.githubusercontent.com/u/1398500?v=4","gravatar_id":"","url":"https://api.github.com/users/johan-bjareholt","html_url":"https://github.com/johan-bjareholt","followers_url":"https://api.github.com/users/johan-bjareholt/followers","following_url":"https://api.github.com/users/johan-bjareholt/following{/other_user}","gists_url":"https://api.github.com/users/johan-bjareholt/gists{/gist_id}","starred_url":"https://api.github.com/users/johan-bjareholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johan-bjareholt/subscriptions","organizations_url":"https://api.github.com/users/johan-bjareholt/orgs","repos_url":"https://api.github.com/users/johan-bjareholt/repos","events_url":"https://api.github.com/users/johan-bjareholt/events{/privacy}","received_events_url":"https://api.github.com/users/johan-bjareholt/received_events","type":"User","site_admin":false},"assignees":[{"login":"johan-bjareholt","id":1398500,"avatar_url":"https://avatars1.githubusercontent.com/u/1398500?v=4","gravatar_id":"","url":"https://api.github.com/users/johan-bjareholt","html_url":"https://github.com/johan-bjareholt","followers_url":"https://api.github.com/users/johan-bjareholt/followers","following_url":"https://api.github.com/users/johan-bjareholt/following{/other_user}","gists_url":"https://api.github.com/users/johan-bjareholt/gists{/gist_id}","starred_url":"https://api.github.com/users/johan-bjareholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johan-bjareholt/subscriptions","organizations_url":"https://api.github.com/users/johan-bjareholt/orgs","repos_url":"https://api.github.com/users/johan-bjareholt/repos","events_url":"https://api.github.com/users/johan-bjareholt/events{/privacy}","received_events_url":"https://api.github.com/users/johan-bjareholt/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":719608394,"url":"https://api.github.com/repos/ActivityWatch/aw-core/labels/review","name":"review","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ActivityWatch/aw-core/pulls/53/commits","review_comments_url":"https://api.github.com/repos/ActivityWatch/aw-core/pulls/53/comments","review_comment_url":"https://api.github.com/repos/ActivityWatch/aw-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ActivityWatch/aw-core/issues/53/comments","statuses_url":"https://api.github.com/repos/ActivityWatch/aw-core/statuses/1135292347bf451771d0b5359f935f56ebf22e7d","head":{"label":"ActivityWatch:dev/query2_better_errorhandling","ref":"dev/query2_better_errorhandling","sha":"1135292347bf451771d0b5359f935f56ebf22e7d","user":{"login":"ActivityWatch","id":18249061,"avatar_url":"https://avatars1.githubusercontent.com/u/18249061?v=4","gravatar_id":"","url":"https://api.github.com/users/ActivityWatch","html_url":"https://github.com/ActivityWatch","followers_url":"https://api.github.com/users/ActivityWatch/followers","following_url":"https://api.github.com/users/ActivityWatch/following{/other_user}","gists_url":"https://api.github.com/users/ActivityWatch/gists{/gist_id}","starred_url":"https://api.github.com/users/ActivityWatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ActivityWatch/subscriptions","organizations_url":"https://api.github.com/users/ActivityWatch/orgs","repos_url":"https://api.github.com/users/ActivityWatch/repos","events_url":"https://api.github.com/users/ActivityWatch/events{/privacy}","received_events_url":"https://api.github.com/users/ActivityWatch/received_events","type":"Organization","site_admin":false},"repo":{"id":56850132,"name":"aw-core","full_name":"ActivityWatch/aw-core","owner":{"login":"ActivityWatch","id":18249061,"avatar_url":"https://avatars1.githubusercontent.com/u/18249061?v=4","gravatar_id":"","url":"https://api.github.com/users/ActivityWatch","html_url":"https://github.com/ActivityWatch","followers_url":"https://api.github.com/users/ActivityWatch/followers","following_url":"https://api.github.com/users/ActivityWatch/following{/other_user}","gists_url":"https://api.github.com/users/ActivityWatch/gists{/gist_id}","starred_url":"https://api.github.com/users/ActivityWatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ActivityWatch/subscriptions","organizations_url":"https://api.github.com/users/ActivityWatch/orgs","repos_url":"https://api.github.com/users/ActivityWatch/repos","events_url":"https://api.github.com/users/ActivityWatch/events{/privacy}","received_events_url":"https://api.github.com/users/ActivityWatch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ActivityWatch/aw-core","description":"Core library for ActivityWatch","fork":false,"url":"https://api.github.com/repos/ActivityWatch/aw-core","forks_url":"https://api.github.com/repos/ActivityWatch/aw-core/forks","keys_url":"https://api.github.com/repos/ActivityWatch/aw-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ActivityWatch/aw-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ActivityWatch/aw-core/teams","hooks_url":"https://api.github.com/repos/ActivityWatch/aw-core/hooks","issue_events_url":"https://api.github.com/repos/ActivityWatch/aw-core/issues/events{/number}","events_url":"https://api.github.com/repos/ActivityWatch/aw-core/events","assignees_url":"https://api.github.com/repos/ActivityWatch/aw-core/assignees{/user}","branches_url":"https://api.github.com/repos/ActivityWatch/aw-core/branches{/branch}","tags_url":"https://api.github.com/repos/ActivityWatch/aw-core/tags","blobs_url":"https://api.github.com/repos/ActivityWatch/aw-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ActivityWatch/aw-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ActivityWatch/aw-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/ActivityWatch/aw-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ActivityWatch/aw-core/statuses/{sha}","languages_url":"https://api.github.com/repos/ActivityWatch/aw-core/languages","stargazers_url":"https://api.github.com/repos/ActivityWatch/aw-core/stargazers","contributors_url":"https://api.github.com/repos/ActivityWatch/aw-core/contributors","subscribers_url":"https://api.github.com/repos/ActivityWatch/aw-core/subscribers","subscription_url":"https://api.github.com/repos/ActivityWatch/aw-core/subscription","commits_url":"https://api.github.com/repos/ActivityWatch/aw-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/ActivityWatch/aw-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/ActivityWatch/aw-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/ActivityWatch/aw-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/ActivityWatch/aw-core/contents/{+path}","compare_url":"https://api.github.com/repos/ActivityWatch/aw-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ActivityWatch/aw-core/merges","archive_url":"https://api.github.com/repos/ActivityWatch/aw-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ActivityWatch/aw-core/downloads","issues_url":"https://api.github.com/repos/ActivityWatch/aw-core/issues{/number}","pulls_url":"https://api.github.com/repos/ActivityWatch/aw-core/pulls{/number}","milestones_url":"https://api.github.com/repos/ActivityWatch/aw-core/milestones{/number}","notifications_url":"https://api.github.com/repos/ActivityWatch/aw-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ActivityWatch/aw-core/labels{/name}","releases_url":"https://api.github.com/repos/ActivityWatch/aw-core/releases{/id}","deployments_url":"https://api.github.com/repos/ActivityWatch/aw-core/deployments","created_at":"2016-04-22T11:19:15Z","updated_at":"2018-03-28T05:30:19Z","pushed_at":"2018-04-02T18:06:01Z","git_url":"git://github.com/ActivityWatch/aw-core.git","ssh_url":"git@github.com:ActivityWatch/aw-core.git","clone_url":"https://github.com/ActivityWatch/aw-core.git","svn_url":"https://github.com/ActivityWatch/aw-core","homepage":null,"size":361,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":2,"open_issues":6,"watchers":4,"default_branch":"master"}},"base":{"label":"ActivityWatch:master","ref":"master","sha":"6cff4c0d4835eb2c91b67e962b8e02e25793bb56","user":{"login":"ActivityWatch","id":18249061,"avatar_url":"https://avatars1.githubusercontent.com/u/18249061?v=4","gravatar_id":"","url":"https://api.github.com/users/ActivityWatch","html_url":"https://github.com/ActivityWatch","followers_url":"https://api.github.com/users/ActivityWatch/followers","following_url":"https://api.github.com/users/ActivityWatch/following{/other_user}","gists_url":"https://api.github.com/users/ActivityWatch/gists{/gist_id}","starred_url":"https://api.github.com/users/ActivityWatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ActivityWatch/subscriptions","organizations_url":"https://api.github.com/users/ActivityWatch/orgs","repos_url":"https://api.github.com/users/ActivityWatch/repos","events_url":"https://api.github.com/users/ActivityWatch/events{/privacy}","received_events_url":"https://api.github.com/users/ActivityWatch/received_events","type":"Organization","site_admin":false},"repo":{"id":56850132,"name":"aw-core","full_name":"ActivityWatch/aw-core","owner":{"login":"ActivityWatch","id":18249061,"avatar_url":"https://avatars1.githubusercontent.com/u/18249061?v=4","gravatar_id":"","url":"https://api.github.com/users/ActivityWatch","html_url":"https://github.com/ActivityWatch","followers_url":"https://api.github.com/users/ActivityWatch/followers","following_url":"https://api.github.com/users/ActivityWatch/following{/other_user}","gists_url":"https://api.github.com/users/ActivityWatch/gists{/gist_id}","starred_url":"https://api.github.com/users/ActivityWatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ActivityWatch/subscriptions","organizations_url":"https://api.github.com/users/ActivityWatch/orgs","repos_url":"https://api.github.com/users/ActivityWatch/repos","events_url":"https://api.github.com/users/ActivityWatch/events{/privacy}","received_events_url":"https://api.github.com/users/ActivityWatch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ActivityWatch/aw-core","description":"Core library for ActivityWatch","fork":false,"url":"https://api.github.com/repos/ActivityWatch/aw-core","forks_url":"https://api.github.com/repos/ActivityWatch/aw-core/forks","keys_url":"https://api.github.com/repos/ActivityWatch/aw-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ActivityWatch/aw-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ActivityWatch/aw-core/teams","hooks_url":"https://api.github.com/repos/ActivityWatch/aw-core/hooks","issue_events_url":"https://api.github.com/repos/ActivityWatch/aw-core/issues/events{/number}","events_url":"https://api.github.com/repos/ActivityWatch/aw-core/events","assignees_url":"https://api.github.com/repos/ActivityWatch/aw-core/assignees{/user}","branches_url":"https://api.github.com/repos/ActivityWatch/aw-core/branches{/branch}","tags_url":"https://api.github.com/repos/ActivityWatch/aw-core/tags","blobs_url":"https://api.github.com/repos/ActivityWatch/aw-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ActivityWatch/aw-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ActivityWatch/aw-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/ActivityWatch/aw-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ActivityWatch/aw-core/statuses/{sha}","languages_url":"https://api.github.com/repos/ActivityWatch/aw-core/languages","stargazers_url":"https://api.github.com/repos/ActivityWatch/aw-core/stargazers","contributors_url":"https://api.github.com/repos/ActivityWatch/aw-core/contributors","subscribers_url":"https://api.github.com/repos/ActivityWatch/aw-core/subscribers","subscription_url":"https://api.github.com/repos/ActivityWatch/aw-core/subscription","commits_url":"https://api.github.com/repos/ActivityWatch/aw-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/ActivityWatch/aw-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/ActivityWatch/aw-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/ActivityWatch/aw-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/ActivityWatch/aw-core/contents/{+path}","compare_url":"https://api.github.com/repos/ActivityWatch/aw-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ActivityWatch/aw-core/merges","archive_url":"https://api.github.com/repos/ActivityWatch/aw-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ActivityWatch/aw-core/downloads","issues_url":"https://api.github.com/repos/ActivityWatch/aw-core/issues{/number}","pulls_url":"https://api.github.com/repos/ActivityWatch/aw-core/pulls{/number}","milestones_url":"https://api.github.com/repos/ActivityWatch/aw-core/milestones{/number}","notifications_url":"https://api.github.com/repos/ActivityWatch/aw-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ActivityWatch/aw-core/labels{/name}","releases_url":"https://api.github.com/repos/ActivityWatch/aw-core/releases{/id}","deployments_url":"https://api.github.com/repos/ActivityWatch/aw-core/deployments","created_at":"2016-04-22T11:19:15Z","updated_at":"2018-03-28T05:30:19Z","pushed_at":"2018-04-02T18:06:01Z","git_url":"git://github.com/ActivityWatch/aw-core.git","ssh_url":"git@github.com:ActivityWatch/aw-core.git","clone_url":"https://github.com/ActivityWatch/aw-core.git","svn_url":"https://github.com/ActivityWatch/aw-core","homepage":null,"size":361,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":2,"open_issues":6,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ActivityWatch/aw-core/pulls/53"},"html":{"href":"https://github.com/ActivityWatch/aw-core/pull/53"},"issue":{"href":"https://api.github.com/repos/ActivityWatch/aw-core/issues/53"},"comments":{"href":"https://api.github.com/repos/ActivityWatch/aw-core/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/ActivityWatch/aw-core/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/ActivityWatch/aw-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ActivityWatch/aw-core/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/ActivityWatch/aw-core/statuses/1135292347bf451771d0b5359f935f56ebf22e7d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"johan-bjareholt"}}