diff --git a/diffsync/__init__.py b/diffsync/__init__.py index c48e705..402320e 100644 --- a/diffsync/__init__.py +++ b/diffsync/__init__.py @@ -488,7 +488,7 @@ def __new__(cls, **kwargs): # type: ignore[no-untyped-def] for key, value in kwargs.items(): try: meta_kwargs[key] = deepcopy(value) - except (TypeError, AttributeError): + except Exception: # pylint: disable=broad-exception-caught # Some objects (e.g. Kafka Consumer, DB connections) cannot be deep copied meta_kwargs[key] = value instance = super().__new__(cls) diff --git a/docs/admin/release_notes/version_2.2.md b/docs/admin/release_notes/version_2.2.md index f2d84d9..603c7ad 100644 --- a/docs/admin/release_notes/version_2.2.md +++ b/docs/admin/release_notes/version_2.2.md @@ -18,3 +18,9 @@ Remove Python 3.9 support as it's EOL. - [#321](https://github.com/networktocode/diffsync/issues/321) - Fixed CI release workflow. - Rebaked from the cookie `main`. + +## [v2.2.2 (2026-03-11)](https://github.com/networktocode/diffsync/releases/tag/v2.2.2) + +### Fixed + +- [#339](https://github.com/networktocode/diffsync/issues/339) - Fixed bug with deepcopy in dunder new. diff --git a/pyproject.toml b/pyproject.toml index 20a82c8..34267ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "diffsync" -version = "2.2.1" +version = "2.2.2" description = "Library to easily sync/diff/update 2 different data sources" authors = ["Network to Code, LLC "] license = "Apache-2.0"