Update main.py

This commit is contained in:
Jonas Braus committed 2024-12-12 22:34:20 +01:00
1 parent 010adf6f39
commit 3d52ad7544
1 file changed
+2 -1
+2 -1
View File
@@ -54,7 +54,8 @@ def retrieve_file_contents(path, pPullFromS3):
"content": content
})
shutil.rmtree(pulled_bucket_data)
if os.path.exists(pulled_bucket_data):
shutil.rmtree(pulled_bucket_data)
return contents