We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12c4786 commit e05ab13Copy full SHA for e05ab13
nmdc_server/crud.py
@@ -439,6 +439,11 @@ def construct_zip_file_path(data_object: models.DataObject) -> str:
439
# - We probably want to reference the workflow activity but that
440
# involves a complicated query... need a way to join that information
441
# in the original query (possibly in the sqlalchemy relationship)
442
+ if not data_object.omics_processings:
443
+ raise HTTPException(
444
+ status_code=status.HTTP_400_BAD_REQUEST,
445
+ detail="Data object has no associated omics processings."
446
+ )
447
omics_processing = data_object.omics_processings[0]
448
biosamples = cast(Optional[list[models.Biosample]], omics_processing.biosample_inputs)
449
0 commit comments