This happened while listing a bucket with many subentries.

===

Problem: IndexError: list index out of range
S3cmd:   0.9.9
Python:  2.6.4 (r264:75706, Dec  7 2009, 18:43:55)  [GCC 4.4.1]

Traceback (most recent call last):
  File "/usr/bin/s3cmd", line 1562, in <module>
    main()
  File "/usr/bin/s3cmd", line 1542, in main
    cmd_func(args)
  File "/usr/bin/s3cmd", line 88, in cmd_ls
    subcmd_bucket_list(s3, uri)
  File "/usr/bin/s3cmd", line 118, in subcmd_bucket_list
    response = s3.bucket_list(bucket, prefix = prefix)
  File "/usr/share/s3cmd/S3/S3.py", line 136, in bucket_list
    uri_params['marker'] = self.urlencode_string(list[-1]["Key"])
IndexError: list index out of range