Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/339.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed bug with deepcopy in dunder new.
2 changes: 1 addition & 1 deletion diffsync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
# Some objects (e.g. Kafka Consumer, DB connections) cannot be deep copied
meta_kwargs[key] = value
instance = super().__new__(cls)
Expand Down
Loading