Skip to content

Commit ac4b163

Browse files
author
Matthew Fisher
committed
Merge pull request #61 from bacongobbler/raise-if-client-error
feat(create_bucket): raise client error if status code != 404
2 parents f717c24 + 78f85b2 commit ac4b163

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rootfs/bin/create_bucket

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ except botocore.exceptions.ClientError as e:
2525
error_code = int(e.response['Error']['Code'])
2626
if error_code == 404:
2727
exists = False
28+
else:
29+
raise
2830

2931
if not exists:
3032
conn.create_bucket(Bucket=bucket_name)

0 commit comments

Comments
 (0)