From ddb731c10981911c326643edd6a7ea0c35c20e8c Mon Sep 17 00:00:00 2001 From: yingting Date: Wed, 4 Dec 2024 14:55:51 +0800 Subject: [PATCH 1/2] changed TA error msg --- pyvenv.cfg | 2 +- utils/CustomPage/Pages/TA/TA.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyvenv.cfg b/pyvenv.cfg index e133e3e..b1b4e2d 100644 --- a/pyvenv.cfg +++ b/pyvenv.cfg @@ -2,4 +2,4 @@ home = /Library/Frameworks/Python.framework/Versions/3.12/bin include-system-site-packages = false version = 3.12.4 executable = /Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12 -command = /Users/yingting/Desktop/VSC/service-screener/bin/python3 -m venv /Users/yingting/Desktop/VSC/service-screener/ss-ugym-track2/service-screener-v2 +command = /Library/Frameworks/Python.framework/Versions/3.12/bin/python3 -m venv /Users/yingting/Desktop/VSC/service-screener/service-screener-v2 diff --git a/utils/CustomPage/Pages/TA/TA.py b/utils/CustomPage/Pages/TA/TA.py index e21c54d..2886ff9 100644 --- a/utils/CustomPage/Pages/TA/TA.py +++ b/utils/CustomPage/Pages/TA/TA.py @@ -32,13 +32,13 @@ def build(self): except ClientError as e: error_code = e.response['Error']['Code'] if error_code == 'SubscriptionRequiredException': - errMsg = "Error: Your AWS account doesn't have the required Business or Enterprise Support plan for Trusted Advisor access." + errMsg = "Error: TA unable to generate. Your AWS account doesn't have the required Business or Enterprise Support plan for Trusted Advisor access." self.taError = errMsg print(errMsg) return elif error_code in ['AccessDeniedException', 'UnauthorizedOperation']: # errMsg = "Error: You don't have sufficient permissions to access Trusted Advisor. Required IAM permissions: trustedadvisor:List*, trustedadvisor:Get*" - errMsg = e.response['Error']['Message'] + errMsg = "Error: TA unable to generate. " + e.response['Error']['Message'] self.taError = errMsg print(errMsg) return From 3c4ce710d74a30243311cae58986cbaa89632cd6 Mon Sep 17 00:00:00 2001 From: yingting Date: Wed, 4 Dec 2024 14:57:17 +0800 Subject: [PATCH 2/2] removed pyenv --- pyvenv.cfg | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 pyvenv.cfg diff --git a/pyvenv.cfg b/pyvenv.cfg deleted file mode 100644 index b1b4e2d..0000000 --- a/pyvenv.cfg +++ /dev/null @@ -1,5 +0,0 @@ -home = /Library/Frameworks/Python.framework/Versions/3.12/bin -include-system-site-packages = false -version = 3.12.4 -executable = /Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12 -command = /Library/Frameworks/Python.framework/Versions/3.12/bin/python3 -m venv /Users/yingting/Desktop/VSC/service-screener/service-screener-v2