diff --git a/atlassian/bitbucket/cloud/base.py b/atlassian/bitbucket/cloud/base.py index 69e89c245..ab6738ea0 100644 --- a/atlassian/bitbucket/cloud/base.py +++ b/atlassian/bitbucket/cloud/base.py @@ -113,7 +113,8 @@ def raise_for_status(self, response): e = j["error"] error_msg = e["message"] if e.get("detail"): - error_msg += "\n" + e["detail"] + # It uses interpolation instead of concatenation because of https://github.com/atlassian-api/atlassian-python-api/issues/1481 + error_msg = f"{error_msg}\n{e['detail']}" except Exception as e: log.error(e) response.raise_for_status()