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 0093fad commit cb25435Copy full SHA for cb25435
posthog/request.py
@@ -70,7 +70,12 @@ def _process_response(
70
log.debug(success_message)
71
response = res.json() if return_json else res
72
# Handle quota limited decide responses by raising a specific error
73
- if isinstance(response, dict) and "quotaLimited" in response and isinstance(response["quotaLimited"], list) and "feature_flags" in response["quotaLimited"]:
+ if (
74
+ isinstance(response, dict)
75
+ and "quotaLimited" in response
76
+ and isinstance(response["quotaLimited"], list)
77
+ and "feature_flags" in response["quotaLimited"]
78
+ ):
79
log.warning("PostHog feature flags quota limited")
80
raise QuotaLimitError(res.status_code, "Feature flags quota limited")
81
return response
0 commit comments