Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
wassname (Michael J Clark)
2026-06-30 15:03:08 +08:00
committed by GitHub
co-authored by Copilot Autofix powered by AI
parent bae00aae15
commit ef31bc8283
+2 -2
View File
@@ -101,8 +101,8 @@ TRANSIENT_ERROR_CODES = {408, 429, 500, 502, 503, 504, 524, 529}
def _matches_retry_status_code(response: httpx.Response, status_code: str) -> bool:
if "X" in status_code.upper():
code_range = int(status_code[0])
status_major = response.status_code / 100
return code_range <= status_major < code_range + 1
status_major = response.status_code // 100
return code_range == status_major
return response.status_code == int(status_code)