du
throws error when invoked with no buckets
#1298
Labels
Milestone
du
throws error when invoked with no buckets
#1298
Hello there.
I removed all my buckets and then run
s3cmd du
. It showed me0 Total
, but also showed this:I'm not that good at Python, but I believe that it's due to fact that
size
variable is first assigned in the loop which does not cycle, because the response is empty:s3cmd/s3cmd
Lines 107 to 124 in 6f3e1ba
It looks like the function should not return
size
at all and should returnbuckets_size
instead 🤔The text was updated successfully, but these errors were encountered: