diff --git a/qc_viewer/services/automation_pipeline.py b/qc_viewer/services/automation_pipeline.py index 8b12686..748d14c 100644 --- a/qc_viewer/services/automation_pipeline.py +++ b/qc_viewer/services/automation_pipeline.py @@ -382,16 +382,17 @@ def _finalize(meta: dict) -> None: except Exception as inner_e: print(f"Failed to update metadata after cancel: {inner_e}") except Exception as e: - print(f"Background Processing Error: {e}") + error_str = str(e) + print(f"Background Processing Error: {error_str}") try: def _fail(meta: dict) -> None: meta.update( { "status": "FAILED", - "error": str(e), + "error": error_str, "progress": 0, - "status_message": f"Error: {str(e)}", + "status_message": f"Error: {error_str}", } )