We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
backoff_and_retry
urllib3
2
1 parent 876e4a9 commit ffb3fc0Copy full SHA for ffb3fc0
atlassian/rest_client.py
@@ -13,6 +13,7 @@
13
from requests_oauthlib import OAuth1, OAuth2
14
from six.moves.urllib.parse import urlencode
15
from urllib3.util import Retry
16
+import urllib3
17
18
from atlassian.request_utils import get_default_logger
19
@@ -117,7 +118,7 @@ def __init__(
117
118
self._session = requests.Session()
119
else:
120
self._session = session
- if backoff_and_retry:
121
+ if backoff_and_retry and int(urllib3.__version__.split(".")[0]) >= 2:
122
# Note: we only retry on status and not on any of the
123
# other supported reasons
124
retries = Retry(
0 commit comments