We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b94b74 commit 00f805aCopy full SHA for 00f805a
1 file changed
functions-python/helpers/utils.py
@@ -134,11 +134,10 @@ def download_and_get_hash(
134
logger.error(e)
135
if os.path.exists(file_path):
136
try:
137
- with open(file_path, "r") as file:
138
- logger.error(f"File content: {file.read()}")
139
- except Exception as read_error:
140
- logger.error(f"Failed to read file content: {read_error}")
141
- os.remove(file_path)
+ os.remove(file_path)
+ except Exception:
+ logger.error(f"Delete file: [{file_path}]")
+
142
raise e
143
144
0 commit comments