fix for older hub
This commit is contained in:
parent
455745b153
commit
a14a1fee39
2 changed files with 10 additions and 2 deletions
|
|
@ -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)")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue