Skip to content

Commit 8ac11ad

Browse files
committed
adjust and prepare release
1 parent cd46637 commit 8ac11ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

atlassian/bitbucket/cloud/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def raise_for_status(self, response):
115115
if e.get("detail"):
116116
# It uses interpolation instead of concatenation because of
117117
# https://github.com/atlassian-api/atlassian-python-api/issues/1481
118-
error_msg = "{}\n{}".format(error_msg, e["detail"])
118+
error_msg = "{}\n{}".format(error_msg, str(e["detail"]))
119119
except Exception as e:
120120
log.error(e)
121121
response.raise_for_status()

atlassian/rest_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def _calculate_backoff_value(self, retry_count):
254254
"""
255255
backoff_value = self.backoff_factor * (2 ** (retry_count - 1))
256256
if self.backoff_jitter != 0.0:
257-
backoff_value += random.uniform(0, self.backoff_jitter) # nosec B311
257+
backoff_value += random.uniform(0, self.backoff_jitter) # nosec B311
258258
return float(max(0, min(self.max_backoff_seconds, backoff_value)))
259259

260260
def _retry_handler(self):

0 commit comments

Comments
 (0)