From 0cab1ec7f20e58b23a5e3480504a58d6d888f363 Mon Sep 17 00:00:00 2001 From: Brian Wylie Date: Sat, 30 Nov 2024 05:59:21 -0700 Subject: [PATCH] removing the chained exception since we're already printing out the exception --- src/sageworks/core/cloud_platform/aws/aws_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sageworks/core/cloud_platform/aws/aws_session.py b/src/sageworks/core/cloud_platform/aws/aws_session.py index 8b41303bc..e2d86df60 100644 --- a/src/sageworks/core/cloud_platform/aws/aws_session.py +++ b/src/sageworks/core/cloud_platform/aws/aws_session.py @@ -110,7 +110,7 @@ def _assume_sageworks_role_session_credentials(self): except Exception as e: self.c_print(f"Error during Refresh Credentials: {e}", critical=True) - raise RuntimeError("Failed to refresh SageWorks role session credentials") from e + raise RuntimeError("Failed to refresh SageWorks role session credentials") @staticmethod def c_print(text: str, critical: bool = False):