Skip to content

Commit cc66820

Browse files
committed
Add logging in clone_attributes_2
1 parent cd2637a commit cc66820

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • webapp/views/data_tables

webapp/views/data_tables/dt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,6 +2403,8 @@ def clone_attributes_2(target_filename, target_dt_id, source_filename):
24032403
eml_node = load_eml(filename=target_filename, owner_login=owner_login)
24042404
target_dt_node = Node.get_node_instance(target_dt_id)
24052405
target_object_name = target_dt_node.find_descendant(names.OBJECTNAME).content
2406+
if target_dt_node is None:
2407+
log_error(f'clone_attributes_2: node instance not found for target_dt_id={target_dt_id}')
24062408

24072409
source_eml_node = load_eml(source_filename, do_not_lock=True, owner_login=owner_login)
24082410
source_data_tables = list_data_tables(source_eml_node, to_skip=target_dt_id) # we don't want to clone a DT onto itself

0 commit comments

Comments
 (0)