fix(send_to_s3_bucket): don't kill exec when fail (#3088)

This commit is contained in:
Nacho Rivera
2023-12-01 13:25:59 +01:00
committed by GitHub
parent fdcc2ac5cb
commit 4e037c0f43

View File

@@ -1,5 +1,3 @@
import sys
from prowler.config.config import (
csv_file_suffix,
html_file_suffix,
@@ -41,10 +39,9 @@ def send_to_s3_bucket(
s3_client.upload_file(file_name, output_bucket_name, object_name)
except Exception as error:
logger.critical(
logger.error(
f"{error.__class__.__name__}[{error.__traceback__.tb_lineno}] -- {error}"
)
sys.exit(1)
def get_s3_object_path(output_directory: str) -> str: