From eff49e1ddb2e70d62e45866b429a1350443107d0 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 25 Oct 2022 11:53:09 -0400 Subject: [PATCH] Squashed 'spiffworkflow-backend/' changes from e748b1804..1e338f955 1e338f955 Another error with the error message. git-subtree-dir: spiffworkflow-backend git-subtree-split: 1e338f955acaf1c0c3e7d16c56c800f634638d9d --- .../services/process_instance_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spiffworkflow_backend/services/process_instance_service.py b/src/spiffworkflow_backend/services/process_instance_service.py index 0e5ae428..94b2714a 100644 --- a/src/spiffworkflow_backend/services/process_instance_service.py +++ b/src/spiffworkflow_backend/services/process_instance_service.py @@ -68,13 +68,13 @@ class ProcessInstanceService: ) processor = ProcessInstanceProcessor(process_instance) processor.do_engine_steps(save=True) - except Exception: + except Exception as e: db.session.rollback() # in case the above left the database with a bad transaction process_instance.status = ProcessInstanceStatus.erroring.value db.session.add(process_instance) db.session.commit() error_message = f"Error running waiting task for process_instance {process_instance.id}" + \ - "({process_instance.process_model_identifier}). {str(e)}" + f"({process_instance.process_model_identifier}). {str(e)}" current_app.logger.error(error_message) @staticmethod