diff --git a/src/iac_scan_runner/utils.py b/src/iac_scan_runner/utils.py index 5ca8727ffd479060e1ce8b6de9b9f74987ddd11c..621513f76bc01764e484102edbd6b87e849111fb 100644 --- a/src/iac_scan_runner/utils.py +++ b/src/iac_scan_runner/utils.py @@ -109,6 +109,7 @@ def file_to_string(file_path: str) -> str: try: with open(file_path, "r") as text_file: output = str(text_file.read()) + # TODO: Narrow exceptions for this one and similar functions except Exception as e: raise Exception(f"Error while reading file: {str(e)}.") return output