From a84b77b2033b2d94cd4d7fd5d65f6abbbdb46a68 Mon Sep 17 00:00:00 2001 From: danfunk Date: Mon, 15 May 2023 16:53:27 -0400 Subject: [PATCH] I'm yanking the general exception catching because it made it impossible to debug a problem we ran into - and it results in roughtly the same error message presented to the end user. Updating SpiffWorkflow which will now handle the situation where a task does not have a parent task. --- .../src/spiffworkflow_backend/routes/tasks_controller.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/tasks_controller.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/tasks_controller.py index 0c0b2c7a3..3af7a412b 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/tasks_controller.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/tasks_controller.py @@ -438,14 +438,6 @@ def _interstitial_stream(process_instance: ProcessInstanceModel) -> Generator[st ) yield render_data("error", api_error) return - except Exception as e: - api_error = ApiError( - error_code="engine_steps_error", - message=f"Failed to complete an automated task. Error was: {str(e)}", - status_code=400, - ) - yield render_data("error", api_error) - return processor.refresh_waiting_tasks() ready_engine_task_count = get_ready_engine_step_count(processor.bpmn_process_instance) tasks = get_reportable_tasks()