diff --git a/lib/reindex/s3_bucketd.py b/lib/reindex/s3_bucketd.py index 38c732fd..a0720d2f 100644 --- a/lib/reindex/s3_bucketd.py +++ b/lib/reindex/s3_bucketd.py @@ -258,7 +258,7 @@ def _sum_objects(self, bucket, listing, only_latest_when_locked = False): total_size += size except InvalidListing: - _log.error('Invalid contents in listing. bucket:%s status_code:%s'%(bucket.name, status_code)) + _log.error('Invalid contents in listing. bucket:%s status_code:%s'%(bucket.name)) raise InvalidListing(bucket.name) return count, total_size