Skip to content

Commit

Permalink
[Bitbucket] Fixed error_msg concatenation error in raise_for_status (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktxrrr authored Jan 23, 2025
1 parent 405049f commit 8f06e79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atlassian/bitbucket/cloud/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8f06e79

Please sign in to comment.