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 8295c22 commit 6be6b8dCopy full SHA for 6be6b8d
featureflags/streaming.py
@@ -166,10 +166,14 @@ def run(self):
166
identifier=self._msg.identifier,
167
environment_uuid=self._environemnt_id,
168
cluster=self._cluster).parsed
169
- log.debug("Feature config '%s' loaded", fc.feature)
170
- self._repository.set_flag(fc)
171
- log.debug('flag %s successfully stored in the cache',
172
- fc.feature)
+
+ if fc is None:
+ log.debug("Feature config '%s' not loaded", self._msg.identifier)
+ else:
173
+ log.debug("Feature config '%s' loaded", fc.feature)
174
+ self._repository.set_flag(fc)
175
+ log.debug('flag %s successfully stored in the cache',
176
+ fc.feature)
177
178
except UnrecoverableRequestException as e:
179
warning_fetch_feature_by_id_failed(e)
0 commit comments