mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-08 14:12:27 -05:00
Update no_proxy and S3 error handling
This changeset updates the no_proxy environment variable to allow S3 through. It also updates our error handling connecting to S3. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
2
.profile
2
.profile
@@ -6,4 +6,4 @@
|
||||
export http_proxy=$egress_proxy
|
||||
export https_proxy=$egress_proxy
|
||||
export NEW_RELIC_PROXY_HOST=$egress_proxy
|
||||
export no_proxy="apps.internal"
|
||||
export no_proxy="apps.internal,s3-fips.us-gov-west-1.amazonaws.com"
|
||||
|
||||
@@ -116,9 +116,9 @@ def list_s3_objects():
|
||||
)
|
||||
else:
|
||||
break
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
current_app.logger.exception(
|
||||
"An error occurred while regenerating cache #notify-debug-admin-1200",
|
||||
f"An error occurred while regenerating cache #notify-debug-admin-1200: {str(e)}",
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user