From 91eab5e0543d729b27bb3843d0f8a38688eef212 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 9 Jul 2018 18:28:01 +0300 Subject: Change: icktool trigger give humane message for non-existing project --- icktool | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/icktool b/icktool index 5329fd2..34266d3 100755 --- a/icktool +++ b/icktool @@ -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): -- cgit v1.2.1