We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6da48c0 commit 0c7dee6Copy full SHA for 0c7dee6
src/cbapi/response/rest_api.py
@@ -74,7 +74,7 @@ def __init__(self, *args, **kwargs):
74
75
self._has_legacy_partitions = False
76
if self.cb_server_version >= LooseVersion('6.0'):
77
- legacy_partitions = [p for p in self.select(StoragePartition) if p.info["isLegacy"]]
+ legacy_partitions = [p for p in self.select(StoragePartition) if p.info.get("isLegacy", False)]
78
if legacy_partitions:
79
self._has_legacy_partitions = True
80
0 commit comments