{"action":"created","issue":{"url":"https://api.github.com/repos/hfaran/slack-auto-export/issues/2","repository_url":"https://api.github.com/repos/hfaran/slack-auto-export","labels_url":"https://api.github.com/repos/hfaran/slack-auto-export/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hfaran/slack-auto-export/issues/2/comments","events_url":"https://api.github.com/repos/hfaran/slack-auto-export/issues/2/events","html_url":"https://github.com/hfaran/slack-auto-export/pull/2","id":218814485,"number":2,"title":"fix empty messages error","user":{"login":"csaftoiu","id":43113,"avatar_url":"https://avatars3.githubusercontent.com/u/43113?v=3","gravatar_id":"","url":"https://api.github.com/users/csaftoiu","html_url":"https://github.com/csaftoiu","followers_url":"https://api.github.com/users/csaftoiu/followers","following_url":"https://api.github.com/users/csaftoiu/following{/other_user}","gists_url":"https://api.github.com/users/csaftoiu/gists{/gist_id}","starred_url":"https://api.github.com/users/csaftoiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csaftoiu/subscriptions","organizations_url":"https://api.github.com/users/csaftoiu/orgs","repos_url":"https://api.github.com/users/csaftoiu/repos","events_url":"https://api.github.com/users/csaftoiu/events{/privacy}","received_events_url":"https://api.github.com/users/csaftoiu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-04-03T02:11:51Z","updated_at":"2017-04-06T03:10:30Z","closed_at":"2017-04-05T05:44:09Z","pull_request":{"url":"https://api.github.com/repos/hfaran/slack-auto-export/pulls/2","html_url":"https://github.com/hfaran/slack-auto-export/pull/2","diff_url":"https://github.com/hfaran/slack-auto-export/pull/2.diff","patch_url":"https://github.com/hfaran/slack-auto-export/pull/2.patch"},"body":"If a channel has no messages retrieved, it will stop the script and cause an error. This fixes it."},"comment":{"url":"https://api.github.com/repos/hfaran/slack-auto-export/issues/comments/292057002","html_url":"https://github.com/hfaran/slack-auto-export/pull/2#issuecomment-292057002","issue_url":"https://api.github.com/repos/hfaran/slack-auto-export/issues/2","id":292057002,"user":{"login":"hfaran","id":2450496,"avatar_url":"https://avatars3.githubusercontent.com/u/2450496?v=3","gravatar_id":"","url":"https://api.github.com/users/hfaran","html_url":"https://github.com/hfaran","followers_url":"https://api.github.com/users/hfaran/followers","following_url":"https://api.github.com/users/hfaran/following{/other_user}","gists_url":"https://api.github.com/users/hfaran/gists{/gist_id}","starred_url":"https://api.github.com/users/hfaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hfaran/subscriptions","organizations_url":"https://api.github.com/users/hfaran/orgs","repos_url":"https://api.github.com/users/hfaran/repos","events_url":"https://api.github.com/users/hfaran/events{/privacy}","received_events_url":"https://api.github.com/users/hfaran/received_events","type":"User","site_admin":false},"created_at":"2017-04-06T03:10:30Z","updated_at":"2017-04-06T03:10:30Z","body":"That's not quite true - the loop will definitely run once, but if you look at the pre-merge logic, `has_more` is updated before the `if not m.body['messages']` check, so if that Exception is being raised, it means that has_body in the response is actually true when there are no messages either, so there is something weird with the actual payload from Slack (unless I missed something)."}}
{"actor":{"display_login":"hfaran"}}