Skip to content

Commit 8b21f21

Browse files
🚨 auto fix by pre-commit hooks
1 parent 3c0b2c5 commit 8b21f21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

githubkit/graphql/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ def parse_graphql_response(
6060
# error.type may be RATE_LIMIT or RATE_LIMITED
6161
# https://github.com/yanyongyu/githubkit/issues/271
6262
# https://github.com/octokit/plugin-throttling.js/issues/824
63-
if any(error.type in ("RATE_LIMIT", "RATE_LIMITED") for error in response_data.errors):
63+
if any(
64+
error.type in ("RATE_LIMIT", "RATE_LIMITED")
65+
for error in response_data.errors
66+
):
6467
raise PrimaryRateLimitExceeded(
6568
response, self._github._extract_retry_after(response)
6669
)

0 commit comments

Comments
 (0)