Skip to content

Commit 30f332c

Browse files
committed
[Bitbucket] Fixed error_msg concatenation error in raise_for_status
1 parent 85eea47 commit 30f332c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

atlassian/bitbucket/cloud/base.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ def raise_for_status(self, response):
113113
e = j["error"]
114114
error_msg = e["message"]
115115
if e.get("detail"):
116-
error_msg += "\n" + e["detail"]
116+
# It uses interpolation instead of concatenation because of https://github.com/atlassian-api/atlassian-python-api/issues/1481
117+
error_msg = f"{error_msg}\n{e['detail']}"
117118
except Exception as e:
118119
log.error(e)
119120
response.raise_for_status()

0 commit comments

Comments
 (0)