From d19bc73b637d024aab6ac81da997cb56b2865f41 Mon Sep 17 00:00:00 2001 From: Jana Librova Date: Sun, 11 Aug 2024 13:29:53 +0200 Subject: [PATCH] CLI: Print client version when unable to connect to server Fixes: https://pagure.io/koji/issue/4151 --- cli/koji_cli/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 0df721c8..562aae52 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -8119,8 +8119,8 @@ def handle_unblock_notification(goptions, session, args): def handle_version(goptions, session, args): """Report client and hub versions""" - ensure_connection(session, goptions) print('Client: %s' % koji.__version__) + ensure_connection(session, goptions) try: version = session.getKojiVersion() print("Hub: %s" % version)