From 2f9a6149cdb48c96fb2c68934caf466cb56113d3 Mon Sep 17 00:00:00 2001 From: Jana Librova Date: Aug 11 2024 11:31:40 +0000 Subject: CLI: Print client version when unable to connect to server Fixes: https://pagure.io/koji/issue/4151 --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index dece662..2a61447 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -8113,8 +8113,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)