{"action":"created","issue":{"url":"https://api.github.com/repos/yeleman/rapidpro-tools/issues/1","labels_url":"https://api.github.com/repos/yeleman/rapidpro-tools/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/yeleman/rapidpro-tools/issues/1/comments","events_url":"https://api.github.com/repos/yeleman/rapidpro-tools/issues/1/events","html_url":"https://github.com/yeleman/rapidpro-tools/pull/1","id":53389824,"number":1,"title":"check for existing messages before attempting to `resume`","user":{"login":"ewheeler","id":15692,"avatar_url":"https://avatars.githubusercontent.com/u/15692?v=3","gravatar_id":"","url":"https://api.github.com/users/ewheeler","html_url":"https://github.com/ewheeler","followers_url":"https://api.github.com/users/ewheeler/followers","following_url":"https://api.github.com/users/ewheeler/following{/other_user}","gists_url":"https://api.github.com/users/ewheeler/gists{/gist_id}","starred_url":"https://api.github.com/users/ewheeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewheeler/subscriptions","organizations_url":"https://api.github.com/users/ewheeler/orgs","repos_url":"https://api.github.com/users/ewheeler/repos","events_url":"https://api.github.com/users/ewheeler/events{/privacy}","received_events_url":"https://api.github.com/users/ewheeler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-05T12:06:16Z","updated_at":"2015-01-05T13:37:33Z","closed_at":"2015-01-05T13:31:44Z","pull_request":{"url":"https://api.github.com/repos/yeleman/rapidpro-tools/pulls/1","html_url":"https://github.com/yeleman/rapidpro-tools/pull/1","diff_url":"https://github.com/yeleman/rapidpro-tools/pull/1.diff","patch_url":"https://github.com/yeleman/rapidpro-tools/pull/1.patch"},"body":"since `resume` option is default, `dump_messages`\r\nwill raise an exception the first time it runs\r\nbecause there are no existing messages\r\n\r\nthis PR adds a line to check for existing messages before adding the `after` param\r\n\r\nalternatively, this could be handled by failing with an error message instructing the user to disable `resume` for the first run. not sure which is best!"},"comment":{"url":"https://api.github.com/repos/yeleman/rapidpro-tools/issues/comments/68708182","html_url":"https://github.com/yeleman/rapidpro-tools/pull/1#issuecomment-68708182","issue_url":"https://api.github.com/repos/yeleman/rapidpro-tools/issues/1","id":68708182,"user":{"login":"ewheeler","id":15692,"avatar_url":"https://avatars.githubusercontent.com/u/15692?v=3","gravatar_id":"","url":"https://api.github.com/users/ewheeler","html_url":"https://github.com/ewheeler","followers_url":"https://api.github.com/users/ewheeler/followers","following_url":"https://api.github.com/users/ewheeler/following{/other_user}","gists_url":"https://api.github.com/users/ewheeler/gists{/gist_id}","starred_url":"https://api.github.com/users/ewheeler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewheeler/subscriptions","organizations_url":"https://api.github.com/users/ewheeler/orgs","repos_url":"https://api.github.com/users/ewheeler/repos","events_url":"https://api.github.com/users/ewheeler/events{/privacy}","received_events_url":"https://api.github.com/users/ewheeler/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T13:37:33Z","updated_at":"2015-01-05T13:37:33Z","body":"@rgaudin :thumbsup:\r\ngreat work btw. this is awesome"}}