Skip to content

Commit 56d7d3e

Browse files
committed
Raise any exceptions that are tagSet not found
1 parent c42a5dd commit 56d7d3e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/lss3

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
import boto
3+
from boto.exception import S3ResponseError
34
from boto.s3.connection import OrdinaryCallingFormat
45

56

@@ -62,8 +63,10 @@ def list_buckets(s3, display_tags=False):
6263
tags = b.get_tags()
6364
for tag in tags[0]:
6465
print " %s:%s" % (tag.key, tag.value)
65-
except:
66-
pass
66+
except S3ResponseError as e:
67+
if e.status != 404:
68+
raise
69+
6770

6871
def main():
6972
import optparse

0 commit comments

Comments
 (0)