Skip to content

Commit 359d81c

Browse files
committed
Fix render_flat check file exists
Fix render_flat check file exists to use Bucket and Key keywords as part of #111.
1 parent 1b05f32 commit 359d81c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snapshot/render_flat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def check_file_exists(full_loc: str) -> bool:
379379
True if the file is found and false otherwise.
380380
"""
381381
try:
382-
s3_client.head_object(bucket=bucket, key=full_loc)
382+
s3_client.head_object(Bucket=bucket, Key=full_loc)
383383
return True
384384
except botocore.exceptions.ClientError as e:
385385
error_code = e.response['Error']['Code']

0 commit comments

Comments
 (0)