We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cf58f8 commit 77bed98Copy full SHA for 77bed98
src/mas/devops/slack.py
@@ -132,7 +132,7 @@ def createMessagePermalink(
132
if slackResponse is not None:
133
channelId = slackResponse["channel"]
134
messageTimestamp = slackResponse["ts"]
135
- elif channelId == "" or messageTimestamp == "":
+ elif channelId is None or messageTimestamp is None:
136
raise Exception("Either channelId and messageTimestamp, or slackReponse params must be provided")
137
138
return f"https://{domain}.slack.com/archives/{channelId}/p{messageTimestamp.replace('.', '')}"
0 commit comments