show hub version in koji hello

This commit is contained in:
Mike McLean 2023-11-08 14:46:46 -05:00 committed by Tomas Kopecek
parent 8e6737a116
commit cfd6d3064f
3 changed files with 7 additions and 4 deletions

View file

@ -2643,7 +2643,8 @@ class ClientSession(object):
self.__hub_version = self.getKojiVersion()
except GenericError as e:
if 'Invalid method' in str(e):
# hub is older than 1.23, return latest version without the getKojiVersion
# use latest version without the getKojiVersion handler
self.logger.debug("hub is older than 1.23, assuming 1.22.0")
self.__hub_version = '1.22.0'
else:
raise