safe pop of root

This commit is contained in:
Jakub Trllo 2024-10-30 14:31:22 +01:00 committed by GitHub
parent f8d0f2ac36
commit e4d0d3dfb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -411,7 +411,7 @@ def get_representations_delivery_template_data(
_merge_data(template_data, repre_entity["context"])
# Remove roots from template data to auto-fill them with anatomy data
template_data.pop("root")
template_data.pop("root", None)
output[repre_id] = template_data
return output