fix for older hub

This commit is contained in:
Tomas Kopecek 2020-09-30 10:01:40 +02:00
parent 455745b153
commit a14a1fee39
2 changed files with 10 additions and 2 deletions

View file

@ -7660,4 +7660,9 @@ def handle_version(goptions, session, args):
"""Report client and hub versions"""
ensure_connection(session)
print('Client: %s' % koji.__version__)
print('Hub: %s' % session.getKojiVersion())
try:
version = session.getKojiVersion()
print("Hub: %s" % version)
except koji.GenericError:
print("Hub: Can' determine (older than 1.23)")