Skip to content

Commit 77bed98

Browse files
authored
Update slack.py
1 parent 2cf58f8 commit 77bed98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mas/devops/slack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def createMessagePermalink(
132132
if slackResponse is not None:
133133
channelId = slackResponse["channel"]
134134
messageTimestamp = slackResponse["ts"]
135-
elif channelId == "" or messageTimestamp == "":
135+
elif channelId is None or messageTimestamp is None:
136136
raise Exception("Either channelId and messageTimestamp, or slackReponse params must be provided")
137137

138138
return f"https://{domain}.slack.com/archives/{channelId}/p{messageTimestamp.replace('.', '')}"

0 commit comments

Comments
 (0)