EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 4540befb authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Fixing handling of potentially non existing masks

parent d4416c9d
No related branches found
No related tags found
2 merge requests!49Production release 1.1.1,!41Fixing handling of potentially non existing masks
......@@ -211,12 +211,13 @@ class EOxServerBackend(Backend):
# register masks
for mask_identifier, mask_type_name in mapping.get('masks', {}).items():
_, mask_item = source.get_container_and_path(item.mask_files.get(mask_identifier))
mask_item = item.mask_files.get(mask_identifier)
if mask_item:
_, mask_path = source.get_container_and_path()
logger.info(f"Adding mask (file) {mask_type_name} to product")
MaskRegistrator().register(
product.identifier,
storage + [mask_item],
storage + [mask_path],
mask_type_name,
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment