From 70ebdbaed0345eb13c0ded0dcf32fe7d33b16a0d Mon Sep 17 00:00:00 2001 From: "Thomas J. Fan" Date: Thu, 8 Aug 2024 16:53:24 -0400 Subject: [PATCH] Catch all exceptions when rendering python dependencies (#2664) Signed-off-by: Thomas J. Fan --- flytekit/deck/renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flytekit/deck/renderer.py b/flytekit/deck/renderer.py index 51157dc876..26d589e072 100644 --- a/flytekit/deck/renderer.py +++ b/flytekit/deck/renderer.py @@ -113,7 +113,7 @@ def to_html(self) -> str: .replace("\\n", "\n") .rstrip() ) - except subprocess.CalledProcessError as e: + except Exception as e: logger.error(f"Error occurred while fetching installed packages: {e}") return "Error occurred while fetching installed packages."