From ead36ccc4b39c463890c60559a16d3b5215b58eb Mon Sep 17 00:00:00 2001 From: Jon Herron Date: Fri, 25 Nov 2022 15:19:10 -0500 Subject: [PATCH] Getting ./bin/pyl to pass --- .../src/spiffworkflow_backend/routes/process_api_blueprint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py index 427a08e06..37a1b8280 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py @@ -1295,7 +1295,7 @@ def process_instance_task_list( ) .first() ) - if step_detail is not None: + if step_detail is not None and process_instance.bpmn_json is not None: bpmn_json = json.loads(process_instance.bpmn_json) bpmn_json["tasks"] = step_detail.task_json process_instance.bpmn_json = json.dumps(bpmn_json)