We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1133bcd commit ff0c6c0Copy full SHA for ff0c6c0
ldclient/impl/datasystem/store.py
@@ -92,16 +92,19 @@ def set_basis(self, collections: Collections):
92
Initializes the store with a full set of data, replacing any existing data.
93
"""
94
try:
95
- self._lock.lock()
96
-
97
all_decoded = {}
98
for kind in collections:
99
collection = collections[kind]
100
items_decoded = {}
101
for key in collection:
102
items_decoded[key] = kind.decode(collection[key])
103
all_decoded[kind] = items_decoded
+ except Exception as e:
+ log.error("Failed decoding set_basis collection. Aborting", exc_info=e)
104
+ return
105
106
+ try:
107
+ self._lock.lock()
108
self._items.clear()
109
self._items.update(all_decoded)
110
self._initialized = True
0 commit comments