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 800bf77 commit feb7aa7Copy full SHA for feb7aa7
UnleashClient/loader.py
@@ -25,9 +25,13 @@ def load_features(
25
)
26
return
27
28
- warnings = engine.take_state(feature_provisioning)
29
- if warnings:
30
- LOGGER.warning(
31
- "Some features were not able to be parsed correctly, they may not evaluate as expected"
32
- )
33
- LOGGER.warning(warnings)
+ try:
+ warnings = engine.take_state(feature_provisioning)
+ if warnings:
+ LOGGER.warning(
+ "Some features were not able to be parsed correctly, they may not evaluate as expected"
+ )
34
+ LOGGER.warning(warnings)
35
+ except Exception as e:
36
+ LOGGER.error(f"Error loading features: {e}")
37
+ LOGGER.debug(f"Full feature response body from server: {feature_provisioning}")
0 commit comments