Skip to content

Commit 365cdd4

Browse files
committed
raise new errors to actually see the message
1 parent 6a498f6 commit 365cdd4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

ayon_api/entity_hub.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,14 +1468,18 @@ def lock(self) -> None:
14681468
try:
14691469
key = copy.deepcopy(key)
14701470
except RecursionError:
1471-
print(f"Failed to create copy of key '{key}'!!!")
1472-
raise
1471+
raise RuntimeError(
1472+
f"Failed to create copy of key '{key}'"
1473+
" because of recursion!!!"
1474+
)
14731475

14741476
try:
14751477
orig_data[key] = copy.deepcopy(value)
14761478
except RecursionError:
1477-
print(f"Failed to create copy of value '{key}'!!!")
1478-
raise
1479+
raise RuntimeError(
1480+
f"Failed to create copy of value '{key}'"
1481+
" because of recursion!!!"
1482+
)
14791483

14801484
self._orig_data = orig_data
14811485

0 commit comments

Comments
 (0)