diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-07-09 18:28:01 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-07-09 18:28:01 +0300 |
commit | 91eab5e0543d729b27bb3843d0f8a38688eef212 (patch) | |
tree | 3dc2732b993470c963033f87ca58636e5d6635fd | |
parent | b9bd20a607649cc81d61a0cf6f085f5fce37d279 (diff) | |
download | ick2-91eab5e0543d729b27bb3843d0f8a38688eef212.tar.gz |
Change: icktool trigger give humane message for non-existing project
-rwxr-xr-x | icktool | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -432,7 +432,10 @@ class TriggerCommand(Command): def execute(self, args): for project in args: - self._prettyson(self.api.trigger(project)) + try: + self._prettyson(self.api.trigger(project)) + except ick2.HttpError as e: + sys.stderr.write('ERROR: {}: {}\n'.format(project, str(e))) class ShowCommand(Command): |