Skip to content

Commit 0f3304b

Browse files
Merge pull request #3271 from antgonza/fix-3243
fix #3243
2 parents ce23bae + ba39459 commit 0f3304b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

qiita_pet/util.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,9 @@ def get_network_nodes_edges(graph, full_access, nodes=None, edges=None):
193193
atype = 'job'
194194
name = n[1].command.name
195195
status = n[1].status
196-
if status == 'in_construction':
197-
workflow_id = n[1].processing_job_workflow.id
196+
wkflow = n[1].processing_job_workflow
197+
if status == 'in_construction' and wkflow is not None:
198+
workflow_id = wkflow.id
198199
elif n[0] == 'artifact':
199200
atype = n[1].artifact_type
200201
status = 'artifact'

0 commit comments

Comments
 (0)