Skip to content

Commit cb25435

Browse files
committed
ai yi yi
1 parent 0093fad commit cb25435

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

posthog/request.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ def _process_response(
7070
log.debug(success_message)
7171
response = res.json() if return_json else res
7272
# 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"]:
73+
if (
74+
isinstance(response, dict)
75+
and "quotaLimited" in response
76+
and isinstance(response["quotaLimited"], list)
77+
and "feature_flags" in response["quotaLimited"]
78+
):
7479
log.warning("PostHog feature flags quota limited")
7580
raise QuotaLimitError(res.status_code, "Feature flags quota limited")
7681
return response

0 commit comments

Comments
 (0)