Skip to content

Commit

Permalink
Fix a copy bug in Artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaloz committed Aug 7, 2024
1 parent 654bca4 commit 86ae0cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libbs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.18.0"
__version__ = "1.18.1"


import logging
Expand Down
2 changes: 2 additions & 0 deletions libbs/artifacts/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def copy(self) -> "Artifact":
new_dv = dv.copy() if hasattr(dv, "copy") else dv
new_dict[new_dk] = new_dv
setattr(new_obj, attr, new_dict)
elif isinstance(attr_v, Artifact):
setattr(new_obj, attr, attr_v.copy())
else:
setattr(new_obj, attr, attr_v)

Expand Down

0 comments on commit 86ae0cb

Please sign in to comment.