Skip to content

Commit 0c7dee6

Browse files
committed
change check for legacy partitions to default to False
1 parent 6da48c0 commit 0c7dee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cbapi/response/rest_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(self, *args, **kwargs):
7474

7575
self._has_legacy_partitions = False
7676
if self.cb_server_version >= LooseVersion('6.0'):
77-
legacy_partitions = [p for p in self.select(StoragePartition) if p.info["isLegacy"]]
77+
legacy_partitions = [p for p in self.select(StoragePartition) if p.info.get("isLegacy", False)]
7878
if legacy_partitions:
7979
self._has_legacy_partitions = True
8080

0 commit comments

Comments
 (0)