Skip to content

Commit bb0e24a

Browse files
committed
Remove premature int(...)
1 parent 3b96de6 commit bb0e24a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msal/throttled_http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _parse_http_429_5xx_retry_after(result=None, **ignored):
3030
return 0 # Quick exit
3131
default = 60 # Recommended at the end of
3232
# https://identitydivision.visualstudio.com/devex/_git/AuthLibrariesApiReview?version=GBdev&path=%2FService%20protection%2FIntial%20set%20of%20protection%20measures.md&_a=preview
33-
retry_after = int(lowercase_headers.get("retry-after", default))
33+
retry_after = lowercase_headers.get("retry-after", default)
3434
try:
3535
# AAD's retry_after uses integer format only
3636
# https://stackoverflow.microsoft.com/questions/264931/264932

0 commit comments

Comments
 (0)