Skip to content

Commit ef1923a

Browse files
committed
Explicitly determine which contexts to permit to enter the DC metadata-parsing logic block
1 parent 91a16c9 commit ef1923a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/murfey/client/analyser.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,15 @@ def _analyse(self, transferred_file: Path):
422422
)
423423
except Exception as e:
424424
logger.error(f"Exception encountered: {e}")
425-
if "AtlasContext" not in str(self._context):
425+
if any(
426+
context in str(self._context)
427+
for context in (
428+
"SPAContext",
429+
"SPAMetadataContext",
430+
"TomographyContext",
431+
"TomographyMetadataContext",
432+
)
433+
):
426434
if not dc_metadata:
427435
try:
428436
if self._context is not None:

0 commit comments

Comments
 (0)