{"action":"closed","issue":{"url":"https://api.github.com/repos/lamerman/shellpy/issues/45","repository_url":"https://api.github.com/repos/lamerman/shellpy","labels_url":"https://api.github.com/repos/lamerman/shellpy/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/lamerman/shellpy/issues/45/comments","events_url":"https://api.github.com/repos/lamerman/shellpy/issues/45/events","html_url":"https://github.com/lamerman/shellpy/issues/45","id":136512278,"number":45,"title":"Maybe config.EXIT_ON_ERROR should not exit immediately but throw an error","user":{"login":"lamerman","id":1468837,"avatar_url":"https://avatars.githubusercontent.com/u/1468837?v=3","gravatar_id":"","url":"https://api.github.com/users/lamerman","html_url":"https://github.com/lamerman","followers_url":"https://api.github.com/users/lamerman/followers","following_url":"https://api.github.com/users/lamerman/following{/other_user}","gists_url":"https://api.github.com/users/lamerman/gists{/gist_id}","starred_url":"https://api.github.com/users/lamerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamerman/subscriptions","organizations_url":"https://api.github.com/users/lamerman/orgs","repos_url":"https://api.github.com/users/lamerman/repos","events_url":"https://api.github.com/users/lamerman/events{/privacy}","received_events_url":"https://api.github.com/users/lamerman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-25T21:06:13Z","updated_at":"2016-03-13T07:13:26Z","closed_at":"2016-03-13T07:13:26Z","body":"Now if config.EXIT_ON_ERROR is set any returncode != 0 will make the script exit immediately. Maybe an exception should be thrown instead which, if not intercepted, is caught on the very top. When caught, a stacktrace may be printed and the same returncode returned in the handler."}}