Skip to content

Commit

Permalink
Raise any exceptions that are tagSet not found
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbrowne committed Mar 1, 2014
1 parent c42a5dd commit 56d7d3e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/lss3
@@ -1,5 +1,6 @@
#!/usr/bin/env python
import boto
from boto.exception import S3ResponseError
from boto.s3.connection import OrdinaryCallingFormat


Expand Down Expand Up @@ -62,8 +63,10 @@ def list_buckets(s3, display_tags=False):
tags = b.get_tags()
for tag in tags[0]:
print " %s:%s" % (tag.key, tag.value)
except:
pass
except S3ResponseError as e:
if e.status != 404:
raise


def main():
import optparse
Expand Down

0 comments on commit 56d7d3e

Please sign in to comment.