From e62a51eea49828af5fa5df4e5e9f946a3d99caf5 Mon Sep 17 00:00:00 2001 From: shmukit Date: Mon, 4 May 2026 12:03:29 +0600 Subject: [PATCH] fix: resolve undefined name 'e' lint error in automation_pipeline.py --- qc_viewer/services/automation_pipeline.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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}", } )