From e11ec81ef11c9962b6b8769727105e83f57c7114 Mon Sep 17 00:00:00 2001 From: achumagin Date: Mon, 11 Sep 2023 18:54:54 +0300 Subject: [PATCH] fix: ignore warnings for all envs --- functions/data_test/data_test/data_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/data_test/data_test/data_test.py b/functions/data_test/data_test/data_test.py index 66d8a8f..58a1899 100755 --- a/functions/data_test/data_test/data_test.py +++ b/functions/data_test/data_test/data_test.py @@ -11,8 +11,8 @@ def handler(event, context): logger.info("Starting data test") + _ignore_warnings() if os.environ['ENVIRONMENT'] == 'local': - _ignore_warnings() endpoint_url = (f"http://{os.environ['S3_HOST']}:" f"{os.environ['S3_PORT']}") s3 = boto3.resource("s3", endpoint_url=endpoint_url)