Skip to content
Snippets Groups Projects
Commit 1f4a96f1 authored by GitLab Runner 1149's avatar GitLab Runner 1149
Browse files

Automated Save by CI Run

parent 340543d0
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,8 @@ class APISession(object):
for v in versions:
if v['major'] == ref[0] and v['minor'] == ref[1]:
if self._build_version != v['numeric']:
logger.warning(f"This library was built for NETDB API version {self._build_version}, but API reports {v['numeric']}. Please consider updating. "
logger.warning(f"This library was built for NETDB API version {self._build_version}, but API endpoint reports version {v['numeric']}. "
"Please consider updating if you encounter any unexpected behavior. "
"(You can disable this message by setting NETDB_CLIENT_DISABLE_UPDATE_CHECK in your environment or by passing update_check=False to APISession)")
break
except:
......
......@@ -52,7 +52,8 @@ class APISession(object):
for v in versions:
if v['major'] == ref[0] and v['minor'] == ref[1]:
if self._build_version != v['numeric']:
logger.warning(f"This library was built for NETDB API version {self._build_version}, but API reports {v['numeric']}. Please consider updating. "
logger.warning(f"This library was built for NETDB API version {self._build_version}, but API endpoint reports version {v['numeric']}. "
"Please consider updating if you encounter any unexpected behavior. "
"(You can disable this message by setting NETDB_CLIENT_DISABLE_UPDATE_CHECK in your environment or by passing update_check=False to APISession)")
break
except:
......
......@@ -52,7 +52,8 @@ class APISession(object):
for v in versions:
if v['major'] == ref[0] and v['minor'] == ref[1]:
if self._build_version != v['numeric']:
logger.warning(f"This library was built for NETDB API version {self._build_version}, but API reports {v['numeric']}. Please consider updating. "
logger.warning(f"This library was built for NETDB API version {self._build_version}, but API endpoint reports version {v['numeric']}. "
"Please consider updating if you encounter any unexpected behavior. "
"(You can disable this message by setting NETDB_CLIENT_DISABLE_UPDATE_CHECK in your environment or by passing update_check=False to APISession)")
break
except:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment