Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

bitbucket2: Cast append_punctuation argument to str.

Anders Kaseorgaf67eee3ea66
diff --git a/zerver/webhooks/bitbucket2/view.py b/zerver/webhooks/bitbucket2/view.py
index b6c0db1420c..785fbfe5fd1 100644
--- a/zerver/webhooks/bitbucket2/view.py
+++ b/zerver/webhooks/bitbucket2/view.py
@@ -438,7 +438,7 @@ def get_repo_updated_body(payload: Dict[str, Any], include_title: bool) -> str:
old=old,
new=new,
)
- message = append_punctuation(new, message) + "\n"
+ message = append_punctuation(str(new), message) + "\n"
body += message
elif new and not old:
message = BITBUCKET_REPO_UPDATED_ADDED.format(
@@ -447,7 +447,7 @@ def get_repo_updated_body(payload: Dict[str, Any], include_title: bool) -> str:
repo_name=repo_name,
new=new,
)
- message = append_punctuation(new, message) + "\n"
+ message = append_punctuation(str(new), message) + "\n"
body += message
return body