Skip to content

Commit

Permalink
UnboundLocalError for folder_exists
Browse files Browse the repository at this point in the history
  • Loading branch information
shloka-bhalgat-unskript committed May 29, 2024
1 parent 0d5734b commit c7001ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unskript-ctl/unskript_upload_results_to_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def rename_and_upload(self, customer_name, checks_output):
logger.debug(f"Failed to write JSON data to local file: {e}")
return

# Initialize folder_exists
folder_exists = False

# Ensure the folder structure exists in the bucket
try:
self.s3_client.head_object(Bucket=self.bucket_name, Key=folder_path)
Expand Down

0 comments on commit c7001ab

Please sign in to comment.