Skip to content

Commit ac31d3f

Browse files
committed
Fix broken StubAccountInfo.list_bucket_names_ids
1 parent fe1bbcb commit ac31d3f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

b2sdk/_internal/account_info/stub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def get_bucket_name_or_none_from_bucket_id(self, bucket_id: str) -> str | None:
7777
return None
7878

7979
def list_bucket_names_ids(self) -> list[tuple[str, str]]:
80-
return list((bucket.bucket_name, bucket.id_) for bucket in self.buckets.values())
80+
return list((bucket.name, bucket.id_) for bucket in self.buckets.values())
8181

8282
def save_bucket(self, bucket):
8383
self.buckets[bucket.id_] = bucket
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix broken `StubAccountInfo.list_bucket_names_ids()`.

0 commit comments

Comments
 (0)