We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0ca4291 + bd14dc7 commit 18690c2Copy full SHA for 18690c2
src/glean/api_client/_hooks/x_glean.py
@@ -49,12 +49,12 @@ def before_request(
49
# Get deprecated value - env var takes precedence
50
deprecated_value = _get_first_value(
51
os.environ.get("X_GLEAN_EXCLUDE_DEPRECATED_AFTER"),
52
- hook_ctx.config.exclude_deprecated_after,
+ getattr(hook_ctx.config, "exclude_deprecated_after", None),
53
)
54
55
# Get experimental value - env var takes precedence
56
config_experimental = (
57
- "true" if hook_ctx.config.include_experimental is True else None
+ "true" if getattr(hook_ctx.config, "include_experimental", None) is True else None
58
59
experimental_value = _get_first_value(
60
os.environ.get("X_GLEAN_INCLUDE_EXPERIMENTAL"),
0 commit comments