CLI: Print client version when unable to connect to server
Fixes: https://pagure.io/koji/issue/4151
This commit is contained in:
parent
c4b6507696
commit
d19bc73b63
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue