Skip to content

Commit 75548d3

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atlassian/bitbucket/cloud/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ 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+
error_msg = f"{error_msg}\n{e['detail']}"
117117
except Exception as e:
118118
log.error(e)
119119
response.raise_for_status()

0 commit comments

Comments
 (0)