Update Session API version according to max server reported version

This commit is contained in:
allegroai 2020-09-29 19:09:07 +03:00
parent 519677d987
commit ab9487c4e0
3 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@ class ApiServiceProxy(object):
# get the most advanced service version that supports our api # get the most advanced service version that supports our api
version = [str(v) for v in ApiServiceProxy._available_versions if Session.check_min_api_version(v)][-1] version = [str(v) for v in ApiServiceProxy._available_versions if Session.check_min_api_version(v)][-1]
Session.api_version = version
self.__dict__["__wrapped_version__"] = Session.api_version self.__dict__["__wrapped_version__"] = Session.api_version
name = ".v{}.{}".format( name = ".v{}.{}".format(
version.replace(".", "_"), self.__dict__.get("__wrapped_name__") version.replace(".", "_"), self.__dict__.get("__wrapped_name__")

View File

@ -161,7 +161,7 @@ class IdObjectBase(InterfaceBase):
try: try:
self._data = self._reload() self._data = self._reload()
except Exception: except Exception:
pass self.log.error("Failed reloading task {}".format(self.id))
@classmethod @classmethod
def normalize_id(cls, id): def normalize_id(cls, id):

View File

@ -1 +1 @@
__version__ = '0.16.2rc0' __version__ = '0.16.2rc1'