EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 47b50ff0 authored by Fabian Schindler-Strauss's avatar Fabian Schindler-Strauss
Browse files

Merge branch 'fix-mask-path-registration' into 'staging'

Fixing handling of potentially non existing masks

See merge request !41
parents 1e3bb1b7 4540befb
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