{"action":"created","comment":{"url":"https://api.github.com/repos/coyote240/manadex/pulls/comments/49955293","id":49955293,"diff_hunk":"@@ -66,7 +66,11 @@ def init_handlers(self):\n \n     def init_signal_handlers(self):\n         signal.signal(signal.SIGINT, self.interrupt_handler)\n-        signal.signal(signal.SIGQUIT, self.interrupt_handler)\n+        # check for windows signal not existing\n+        if getattr(signal, 'SIGQUIT', None) is not None:","path":"app/app.py","position":6,"original_position":6,"commit_id":"3b78da3b694ac797f7097ae044da0e841207c7db","original_commit_id":"3b78da3b694ac797f7097ae044da0e841207c7db","user":{"login":"coyote240","id":661351,"avatar_url":"https://avatars.githubusercontent.com/u/661351?v=3","gravatar_id":"","url":"https://api.github.com/users/coyote240","html_url":"https://github.com/coyote240","followers_url":"https://api.github.com/users/coyote240/followers","following_url":"https://api.github.com/users/coyote240/following{/other_user}","gists_url":"https://api.github.com/users/coyote240/gists{/gist_id}","starred_url":"https://api.github.com/users/coyote240/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coyote240/subscriptions","organizations_url":"https://api.github.com/users/coyote240/orgs","repos_url":"https://api.github.com/users/coyote240/repos","events_url":"https://api.github.com/users/coyote240/events{/privacy}","received_events_url":"https://api.github.com/users/coyote240/received_events","type":"User","site_admin":false},"body":"Slight change, let's try hasattr(signal, 'SIGQUIT').  It will return True or False.","created_at":"2016-01-18T00:22:32Z","updated_at":"2016-01-18T00:22:32Z","html_url":"https://github.com/coyote240/manadex/pull/1#discussion_r49955293","pull_request_url":"https://api.github.com/repos/coyote240/manadex/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/coyote240/manadex/pulls/comments/49955293"},"html":{"href":"https://github.com/coyote240/manadex/pull/1#discussion_r49955293"},"pull_request":{"href":"https://api.github.com/repos/coyote240/manadex/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/coyote240/manadex/pulls/1","id":56290672,"html_url":"https://github.com/coyote240/manadex/pull/1","diff_url":"https://github.com/coyote240/manadex/pull/1.diff","patch_url":"https://github.com/coyote240/manadex/pull/1.patch","issue_url":"https://api.github.com/repos/coyote240/manadex/issues/1","number":1,"state":"open","locked":false,"title":"Windowsfix","user":{"login":"shaycraft","id":1653910,"avatar_url":"https://avatars.githubusercontent.com/u/1653910?v=3","gravatar_id":"","url":"https://api.github.com/users/shaycraft","html_url":"https://github.com/shaycraft","followers_url":"https://api.github.com/users/shaycraft/followers","following_url":"https://api.github.com/users/shaycraft/following{/other_user}","gists_url":"https://api.github.com/users/shaycraft/gists{/gist_id}","starred_url":"https://api.github.com/users/shaycraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaycraft/subscriptions","organizations_url":"https://api.github.com/users/shaycraft/orgs","repos_url":"https://api.github.com/users/shaycraft/repos","events_url":"https://api.github.com/users/shaycraft/events{/privacy}","received_events_url":"https://api.github.com/users/shaycraft/received_events","type":"User","site_admin":false},"body":"I basically just check if SIGQUIT is available, which is will never be for windows, and then hook the event handler up if so.  You'll notice the commented else statement after where I try to hook SIGTERM instead, but for some reason that does not seem to be working.  I also had to change a couple things in the procfile to get that to work in windows, since just running the *.py files won't work as you have to explicitly run the python interpreter.","created_at":"2016-01-17T23:14:38Z","updated_at":"2016-01-18T00:22:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab38f4ecc04fd5c0f03d1f94770da7af7b459df8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coyote240/manadex/pulls/1/commits","review_comments_url":"https://api.github.com/repos/coyote240/manadex/pulls/1/comments","review_comment_url":"https://api.github.com/repos/coyote240/manadex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coyote240/manadex/issues/1/comments","statuses_url":"https://api.github.com/repos/coyote240/manadex/statuses/3b78da3b694ac797f7097ae044da0e841207c7db","head":{"label":"shaycraft:windowsfix","ref":"windowsfix","sha":"3b78da3b694ac797f7097ae044da0e841207c7db","user":{"login":"shaycraft","id":1653910,"avatar_url":"https://avatars.githubusercontent.com/u/1653910?v=3","gravatar_id":"","url":"https://api.github.com/users/shaycraft","html_url":"https://github.com/shaycraft","followers_url":"https://api.github.com/users/shaycraft/followers","following_url":"https://api.github.com/users/shaycraft/following{/other_user}","gists_url":"https://api.github.com/users/shaycraft/gists{/gist_id}","starred_url":"https://api.github.com/users/shaycraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaycraft/subscriptions","organizations_url":"https://api.github.com/users/shaycraft/orgs","repos_url":"https://api.github.com/users/shaycraft/repos","events_url":"https://api.github.com/users/shaycraft/events{/privacy}","received_events_url":"https://api.github.com/users/shaycraft/received_events","type":"User","site_admin":false},"repo":{"id":49839930,"name":"manadex","full_name":"shaycraft/manadex","owner":{"login":"shaycraft","id":1653910,"avatar_url":"https://avatars.githubusercontent.com/u/1653910?v=3","gravatar_id":"","url":"https://api.github.com/users/shaycraft","html_url":"https://github.com/shaycraft","followers_url":"https://api.github.com/users/shaycraft/followers","following_url":"https://api.github.com/users/shaycraft/following{/other_user}","gists_url":"https://api.github.com/users/shaycraft/gists{/gist_id}","starred_url":"https://api.github.com/users/shaycraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaycraft/subscriptions","organizations_url":"https://api.github.com/users/shaycraft/orgs","repos_url":"https://api.github.com/users/shaycraft/repos","events_url":"https://api.github.com/users/shaycraft/events{/privacy}","received_events_url":"https://api.github.com/users/shaycraft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shaycraft/manadex","description":"An application for neighborhood freaks to keep track of their MtG collections and ponder building sweet decks.","fork":true,"url":"https://api.github.com/repos/shaycraft/manadex","forks_url":"https://api.github.com/repos/shaycraft/manadex/forks","keys_url":"https://api.github.com/repos/shaycraft/manadex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shaycraft/manadex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shaycraft/manadex/teams","hooks_url":"https://api.github.com/repos/shaycraft/manadex/hooks","issue_events_url":"https://api.github.com/repos/shaycraft/manadex/issues/events{/number}","events_url":"https://api.github.com/repos/shaycraft/manadex/events","assignees_url":"https://api.github.com/repos/shaycraft/manadex/assignees{/user}","branches_url":"https://api.github.com/repos/shaycraft/manadex/branches{/branch}","tags_url":"https://api.github.com/repos/shaycraft/manadex/tags","blobs_url":"https://api.github.com/repos/shaycraft/manadex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shaycraft/manadex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shaycraft/manadex/git/refs{/sha}","trees_url":"https://api.github.com/repos/shaycraft/manadex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shaycraft/manadex/statuses/{sha}","languages_url":"https://api.github.com/repos/shaycraft/manadex/languages","stargazers_url":"https://api.github.com/repos/shaycraft/manadex/stargazers","contributors_url":"https://api.github.com/repos/shaycraft/manadex/contributors","subscribers_url":"https://api.github.com/repos/shaycraft/manadex/subscribers","subscription_url":"https://api.github.com/repos/shaycraft/manadex/subscription","commits_url":"https://api.github.com/repos/shaycraft/manadex/commits{/sha}","git_commits_url":"https://api.github.com/repos/shaycraft/manadex/git/commits{/sha}","comments_url":"https://api.github.com/repos/shaycraft/manadex/comments{/number}","issue_comment_url":"https://api.github.com/repos/shaycraft/manadex/issues/comments{/number}","contents_url":"https://api.github.com/repos/shaycraft/manadex/contents/{+path}","compare_url":"https://api.github.com/repos/shaycraft/manadex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shaycraft/manadex/merges","archive_url":"https://api.github.com/repos/shaycraft/manadex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shaycraft/manadex/downloads","issues_url":"https://api.github.com/repos/shaycraft/manadex/issues{/number}","pulls_url":"https://api.github.com/repos/shaycraft/manadex/pulls{/number}","milestones_url":"https://api.github.com/repos/shaycraft/manadex/milestones{/number}","notifications_url":"https://api.github.com/repos/shaycraft/manadex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shaycraft/manadex/labels{/name}","releases_url":"https://api.github.com/repos/shaycraft/manadex/releases{/id}","created_at":"2016-01-17T23:05:11Z","updated_at":"2016-01-17T23:05:12Z","pushed_at":"2016-01-17T23:12:20Z","git_url":"git://github.com/shaycraft/manadex.git","ssh_url":"git@github.com:shaycraft/manadex.git","clone_url":"https://github.com/shaycraft/manadex.git","svn_url":"https://github.com/shaycraft/manadex","homepage":"","size":134,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"coyote240:master","ref":"master","sha":"50814581ae713c4c551eea51da2ef9baf31f7ba0","user":{"login":"coyote240","id":661351,"avatar_url":"https://avatars.githubusercontent.com/u/661351?v=3","gravatar_id":"","url":"https://api.github.com/users/coyote240","html_url":"https://github.com/coyote240","followers_url":"https://api.github.com/users/coyote240/followers","following_url":"https://api.github.com/users/coyote240/following{/other_user}","gists_url":"https://api.github.com/users/coyote240/gists{/gist_id}","starred_url":"https://api.github.com/users/coyote240/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coyote240/subscriptions","organizations_url":"https://api.github.com/users/coyote240/orgs","repos_url":"https://api.github.com/users/coyote240/repos","events_url":"https://api.github.com/users/coyote240/events{/privacy}","received_events_url":"https://api.github.com/users/coyote240/received_events","type":"User","site_admin":false},"repo":{"id":48526588,"name":"manadex","full_name":"coyote240/manadex","owner":{"login":"coyote240","id":661351,"avatar_url":"https://avatars.githubusercontent.com/u/661351?v=3","gravatar_id":"","url":"https://api.github.com/users/coyote240","html_url":"https://github.com/coyote240","followers_url":"https://api.github.com/users/coyote240/followers","following_url":"https://api.github.com/users/coyote240/following{/other_user}","gists_url":"https://api.github.com/users/coyote240/gists{/gist_id}","starred_url":"https://api.github.com/users/coyote240/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coyote240/subscriptions","organizations_url":"https://api.github.com/users/coyote240/orgs","repos_url":"https://api.github.com/users/coyote240/repos","events_url":"https://api.github.com/users/coyote240/events{/privacy}","received_events_url":"https://api.github.com/users/coyote240/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coyote240/manadex","description":"An application for neighborhood freaks to keep track of their MtG collections and ponder building sweet decks.","fork":false,"url":"https://api.github.com/repos/coyote240/manadex","forks_url":"https://api.github.com/repos/coyote240/manadex/forks","keys_url":"https://api.github.com/repos/coyote240/manadex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coyote240/manadex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coyote240/manadex/teams","hooks_url":"https://api.github.com/repos/coyote240/manadex/hooks","issue_events_url":"https://api.github.com/repos/coyote240/manadex/issues/events{/number}","events_url":"https://api.github.com/repos/coyote240/manadex/events","assignees_url":"https://api.github.com/repos/coyote240/manadex/assignees{/user}","branches_url":"https://api.github.com/repos/coyote240/manadex/branches{/branch}","tags_url":"https://api.github.com/repos/coyote240/manadex/tags","blobs_url":"https://api.github.com/repos/coyote240/manadex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coyote240/manadex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coyote240/manadex/git/refs{/sha}","trees_url":"https://api.github.com/repos/coyote240/manadex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coyote240/manadex/statuses/{sha}","languages_url":"https://api.github.com/repos/coyote240/manadex/languages","stargazers_url":"https://api.github.com/repos/coyote240/manadex/stargazers","contributors_url":"https://api.github.com/repos/coyote240/manadex/contributors","subscribers_url":"https://api.github.com/repos/coyote240/manadex/subscribers","subscription_url":"https://api.github.com/repos/coyote240/manadex/subscription","commits_url":"https://api.github.com/repos/coyote240/manadex/commits{/sha}","git_commits_url":"https://api.github.com/repos/coyote240/manadex/git/commits{/sha}","comments_url":"https://api.github.com/repos/coyote240/manadex/comments{/number}","issue_comment_url":"https://api.github.com/repos/coyote240/manadex/issues/comments{/number}","contents_url":"https://api.github.com/repos/coyote240/manadex/contents/{+path}","compare_url":"https://api.github.com/repos/coyote240/manadex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coyote240/manadex/merges","archive_url":"https://api.github.com/repos/coyote240/manadex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coyote240/manadex/downloads","issues_url":"https://api.github.com/repos/coyote240/manadex/issues{/number}","pulls_url":"https://api.github.com/repos/coyote240/manadex/pulls{/number}","milestones_url":"https://api.github.com/repos/coyote240/manadex/milestones{/number}","notifications_url":"https://api.github.com/repos/coyote240/manadex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coyote240/manadex/labels{/name}","releases_url":"https://api.github.com/repos/coyote240/manadex/releases{/id}","created_at":"2015-12-24T05:31:18Z","updated_at":"2016-01-16T02:32:46Z","pushed_at":"2016-01-17T23:14:38Z","git_url":"git://github.com/coyote240/manadex.git","ssh_url":"git@github.com:coyote240/manadex.git","clone_url":"https://github.com/coyote240/manadex.git","svn_url":"https://github.com/coyote240/manadex","homepage":"","size":133,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coyote240/manadex/pulls/1"},"html":{"href":"https://github.com/coyote240/manadex/pull/1"},"issue":{"href":"https://api.github.com/repos/coyote240/manadex/issues/1"},"comments":{"href":"https://api.github.com/repos/coyote240/manadex/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/coyote240/manadex/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/coyote240/manadex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coyote240/manadex/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/coyote240/manadex/statuses/3b78da3b694ac797f7097ae044da0e841207c7db"}}}}