diff --git a/CHANGELOG.md b/CHANGELOG.md index 37e3491238..2c54745b47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ Changes are grouped as follows - `Fixed` for any bug fixes. - `Security` in case of vulnerabilities. +## [7.5.1] - 2023-12-01 +### Changed +- Raise an exception if `ClientConfig:base_url` is set to `None` or an empty string + ## [7.5.0] - 2023-11-30 ### Added - `chain_to` to `NodeResultSetExpression` and `NodeResultSetExpression`, and `direction` to `NodeResultSetExpression`. diff --git a/cognite/client/_version.py b/cognite/client/_version.py index e11a6f90ea..91746e1307 100644 --- a/cognite/client/_version.py +++ b/cognite/client/_version.py @@ -1,4 +1,4 @@ from __future__ import annotations -__version__ = "7.5.0" +__version__ = "7.5.1" __api_subversion__ = "V20220125" diff --git a/cognite/client/config.py b/cognite/client/config.py index 3bda116368..b9348d3b81 100644 --- a/cognite/client/config.py +++ b/cognite/client/config.py @@ -111,6 +111,8 @@ def debug(self, value: bool) -> None: def _validate_config(self) -> None: if not self.project: raise ValueError(f"Invalid value for ClientConfig.project: <{self.project}>") + if not self.base_url: + raise ValueError(f"Invalid value for ClientConfig.base_url: <{self.base_url}>") def __str__(self) -> str: return pprint.pformat(self.__dict__, indent=4) diff --git a/pyproject.toml b/pyproject.toml index aab05303ac..4bfa5e4182 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "cognite-sdk" -version = "7.5.0" +version = "7.5.1" description = "Cognite Python SDK" readme = "README.md" documentation = "https://cognite-sdk-python.readthedocs-hosted.com"