Skip to content

Commit 0093fad

Browse files
committed
type check
1 parent 5260c6c commit 0093fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posthog/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ 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 "feature_flags" in response["quotaLimited"]:
73+
if isinstance(response, dict) and "quotaLimited" in response and isinstance(response["quotaLimited"], list) and "feature_flags" in response["quotaLimited"]:
7474
log.warning("PostHog feature flags quota limited")
7575
raise QuotaLimitError(res.status_code, "Feature flags quota limited")
7676
return response

0 commit comments

Comments
 (0)