aboutsummaryrefslogtreecommitdiff
path: root/docs/intro.rst
diff options
context:
space:
mode:
authorkhazhyk <[email protected]>2017-07-22 20:04:43 -0700
committerkhazhyk <[email protected]>2017-07-22 20:10:28 -0700
commit62cdfbdbcd6aaa2647ba69ba0f9c7d0e8d9b35bc (patch)
treee9f995f8ad78a5dc36e3638b3d418bd331601cc2 /docs/intro.rst
parentRetry on 500 in HTTPClient.request (diff)
downloaddiscord.py-62cdfbdbcd6aaa2647ba69ba0f9c7d0e8d9b35bc.tar.xz
discord.py-62cdfbdbcd6aaa2647ba69ba0f9c7d0e8d9b35bc.zip
Raise in HTTPClient.request when out of retries
Raise after loop completes without returning with most recent values for r, data. This is a bit less fragile than checking tries < 4, since changing the retry count requires changing values in multiple places. (There seemed to already be handling in the 502 retry, tries <= 5, which always evaluated to true, e.g.) Previously, once out of retries, we would always return None without raising. This won't NameError so long as we make at least one HTTP request.
Diffstat (limited to 'docs/intro.rst')
0 files changed, 0 insertions, 0 deletions