microbiomedata / nmdc_automation

Prototype automation
2 stars 2 forks source link

291 error initializing scheduler on spin #292

Closed mbthornton-lbl closed 2 days ago

mbthornton-lbl commented 2 days ago

This PR provides a fix for:

291

Error:

File "/src/nmdc_automation/workflow_automation/workflow_process.py", line 31, in get_required_data_objects_map
    if do.data_object_type.code.text not in required_types:
AttributeError: 'NoneType' object has no attribute 'code'

get_required_data_objects_map was doing a find on the data_object_set with no filters. Some data objects do not have a data_object_type, which led to the AttributeError

Fix is to filter out data objects without a type