From ade6285c1f06e9750473b49484c17dce7a8f60ff Mon Sep 17 00:00:00 2001 From: lrossett Date: Nov 17 2020 18:15:18 +0000 Subject: fix not found build id error for list-builds --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 3d3cd4a..f303fc3 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -3100,8 +3100,8 @@ def anon_handle_list_builds(goptions, session, args): except ValueError: buildid = options.buildid data = [session.getBuild(buildid)] - if data is None: - parser.error(_("Invalid build ID")) + if data[0] is None: + parser.error(_("No build with ID '%s'" % buildid)) else: # Check filter exists if any(opts):