I got this error while running "s3cmd du":


Python: 2.5.1 (r251:54863, Oct 30 2007, 13:54:11)  [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)]

Traceback (most recent call last):
  File "./s3cmd", line 1040, in <module>
  File "./s3cmd", line 1020, in main
  File "./s3cmd", line 38, in cmd_du
  File "./s3cmd", line 45, in subcmd_bucket_usage_all
    size = subcmd_bucket_usage(s3, S3Uri("s3://" + bucket["Name"]))
  File "./s3cmd", line 62, in subcmd_bucket_usage
    if S3.codes.has_key(e.Code):
AttributeError: 'S3Error' object has no attribute 'Code'


This happens when it's about to report on a bucket that I think is corrupt (or something).  If I attempt to do an "ls" or "info" on this bucket, I get:

ERROR: S3 error: 403 (Forbidden): SignatureDoesNotMatch

It is one of my buckets as it shows up with a plain "s3cmd ls".  It's an old AMI (Amazon EC2 instance) bucket that I no longer use.